Skip to content

Commit

Permalink
Fixed|libcore: dsize typedef should always match system size_t
Browse files Browse the repository at this point in the history
These are being used interchangeably.
  • Loading branch information
skyjake committed Jul 22, 2016
1 parent 8157860 commit 274d06f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions doomsday/sdk/libcore/include/de/libcore.h
Expand Up @@ -590,7 +590,7 @@ typedef qint64 dint64; ///< 64-bit signed integer.
typedef quint64 duint64; ///< 64-bit unsigned integer.
typedef float dfloat; ///< 32-bit floating point number.
typedef double ddouble; ///< 64-bit floating point number.
typedef quint64 dsize;
typedef size_t dsize;

// Pointer-integer conversion (used for legacy code).
#ifdef DENG2_64BIT
Expand Down Expand Up @@ -629,12 +629,7 @@ typedef unsigned char dbyte;
typedef unsigned int duint; // 32-bit
typedef float dfloat;
typedef double ddouble;

#ifdef DENG2_64BIT
typedef uint64_t dsize; // 64-bit size
#else
typedef unsigned int dsize; // 32-bit size
#endif
typedef size_t dsize;

#endif // !__cplusplus

Expand Down

0 comments on commit 274d06f

Please sign in to comment.