Skip to content

Commit 6942ad1

Browse files
committed
Upgraded int8_t, uint8_t, etc to c++ types from cstdint
1 parent e6c3b7f commit 6942ad1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Date.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
#ifndef OCL_GUARD_DATETIME_DATE_HPP
1818
#define OCL_GUARD_DATETIME_DATE_HPP
1919

20-
#include <stdint.h>
20+
#include <cstdint>
2121

2222
namespace ocl
2323
{
@@ -29,13 +29,13 @@ class Date
2929
{
3030
// Types.
3131
public:
32-
typedef uint32_t size_type;
33-
typedef int32_t diff_type;
34-
typedef uint8_t day_type;
35-
typedef uint8_t day_of_week_type;
36-
typedef uint8_t month_type;
37-
typedef uint16_t year_type;
38-
typedef uint32_t serialize_type;
32+
typedef std::uint32_t size_type;
33+
typedef std::int32_t diff_type;
34+
typedef std::uint8_t day_type;
35+
typedef std::uint8_t day_of_week_type;
36+
typedef std::uint8_t month_type;
37+
typedef std::uint16_t year_type;
38+
typedef std::uint32_t serialize_type;
3939

4040
// Constants.
4141
public:

0 commit comments

Comments
 (0)