Skip to content

Commit

Permalink
try this fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Nov 14, 2024
1 parent e92db71 commit 584fd93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1905,15 +1905,16 @@ namespace serialize
#define write_bits( stream, value, bits ) \
do \
{ \
uint64_t uint64_value = value; \
if ( bits <= 32 ) \
{ \
uint32_t uint32_value = (uint32_t) value; \
uint32_t uint32_value = (uint32_t) uint64_value; \
stream.SerializeBits( uint32_value, bits ); \
} \
else \
{ \
uint32_t lo = uint32_t( uint64_t(value) & 0xFFFFFFFF ); \
uint32_t hi = uint32_t( uint64_t(value) >> 32 ); \
uint32_t lo = uint32_t( uint64_value & 0xFFFFFFFF ); \
uint32_t hi = uint32_t( uint64_value >> 32 ); \
stream.SerializeBits( lo, 32 ); \
stream.SerializeBits( hi, bits - 32 ); \
} \
Expand Down

0 comments on commit 584fd93

Please sign in to comment.