-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -312,7 +312,7 @@ void DebrisData::packData(BitStream* stream) | |
|
||
if( stream->writeFlag( explosion ) ) | ||
{ | ||
stream->writeRangedU32(packed? SimObjectId(explosion): | ||
stream->writeRangedU32(packed? SimObjectId((uintptr_t)explosion): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
LuisAntonRebollo
Author
Contributor
|
||
explosion->getId(),DataBlockObjectIdFirst,DataBlockObjectIdLast); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -575,7 +575,7 @@ namespace _Private { | |
|
||
/// | ||
#define FIELDOFFSET( fieldName ) \ | ||
U32( ( ( const char* ) &( ( ( ThisType* ) 16 )->fieldName ) ) - 16 ) // Artificial offset to avoid compiler warnings. | ||
uintptr_t( ( ( const char* ) &( ( ( ThisType* ) 16 )->fieldName ) ) - 16 ) // Artificial offset to avoid compiler warnings. | ||
This comment has been minimized.
Sorry, something went wrong.
jamesu
Contributor
|
||
|
||
/// | ||
#define CLASSDOC( className, doc ) \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ namespace DictHash | |
|
||
inline U32 hash(const void *data) | ||
{ | ||
return (U32)data; | ||
return (uintptr_t)data; | ||
This comment has been minimized.
Sorry, something went wrong.
jamesu
Contributor
|
||
} | ||
|
||
template<class A, class B> | ||
|
1 comment
on commit 4e90348
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
congratulation, this breaks the windows build when using bullet by creating a redefinitin of uint64_t, i have deduced that the inclusion of stdint.h was probably the source, note that bullet has a keyword to skip their definition.
Just a thought, perhaps it would be better to use a template'd union for these fields that way you wouldn't have to have an ugly cast.