diff options
Diffstat (limited to 'src/archive.cpp')
-rw-r--r-- | src/archive.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/archive.cpp b/src/archive.cpp index 610dc7b..d6ad18d 100644 --- a/src/archive.cpp +++ b/src/archive.cpp | |||
@@ -89,12 +89,12 @@ Bu::Archive &Bu::Archive::operator<<(uint64_t p) | |||
89 | { | 89 | { |
90 | write( &p, sizeof(p) ); | 90 | write( &p, sizeof(p) ); |
91 | return *this; | 91 | return *this; |
92 | } | 92 | }/* |
93 | Bu::Archive &Bu::Archive::operator<<(long p) | 93 | Bu::Archive &Bu::Archive::operator<<(long p) |
94 | { | 94 | { |
95 | write( &p, sizeof(p) ); | 95 | write( &p, sizeof(p) ); |
96 | return *this; | 96 | return *this; |
97 | } | 97 | }*/ |
98 | Bu::Archive &Bu::Archive::operator<<(float p) | 98 | Bu::Archive &Bu::Archive::operator<<(float p) |
99 | { | 99 | { |
100 | write( &p, sizeof(p) ); | 100 | write( &p, sizeof(p) ); |
@@ -155,12 +155,12 @@ Bu::Archive &Bu::Archive::operator>>(uint64_t &p) | |||
155 | { | 155 | { |
156 | read( &p, sizeof(p) ); | 156 | read( &p, sizeof(p) ); |
157 | return *this; | 157 | return *this; |
158 | } | 158 | }/* |
159 | Bu::Archive &Bu::Archive::operator>>(long &p) | 159 | Bu::Archive &Bu::Archive::operator>>(long &p) |
160 | { | 160 | { |
161 | read( &p, sizeof(p) ); | 161 | read( &p, sizeof(p) ); |
162 | return *this; | 162 | return *this; |
163 | } | 163 | }*/ |
164 | Bu::Archive &Bu::Archive::operator>>(float &p) | 164 | Bu::Archive &Bu::Archive::operator>>(float &p) |
165 | { | 165 | { |
166 | read( &p, sizeof(p) ); | 166 | read( &p, sizeof(p) ); |
@@ -371,9 +371,9 @@ Bu::Archive &Bu::operator>>( Bu::Archive &ar, std::string &s ) | |||
371 | 371 | ||
372 | uint32_t Bu::Archive::getID( const void *ptr ) | 372 | uint32_t Bu::Archive::getID( const void *ptr ) |
373 | { | 373 | { |
374 | if( hPtrID.has( (int)ptr ) ) | 374 | if( hPtrID.has( (ptrdiff_t)ptr ) ) |
375 | return hPtrID.get( (int)ptr ); | 375 | return hPtrID.get( (ptrdiff_t)ptr ); |
376 | hPtrID.insert( (int)ptr, nNextID ); | 376 | hPtrID.insert( (ptrdiff_t)ptr, nNextID ); |
377 | return nNextID++; | 377 | return nNextID++; |
378 | } | 378 | } |
379 | 379 | ||
@@ -393,7 +393,7 @@ void Bu::Archive::assocPtrID( void **ptr, uint32_t id ) | |||
393 | 393 | ||
394 | void Bu::Archive::readID( const void *ptr, uint32_t id ) | 394 | void Bu::Archive::readID( const void *ptr, uint32_t id ) |
395 | { | 395 | { |
396 | hPtrID.insert( id, (int)ptr ); | 396 | hPtrID.insert( id, (ptrdiff_t)ptr ); |
397 | 397 | ||
398 | if( hPtrDest.has( id ) ) | 398 | if( hPtrDest.has( id ) ) |
399 | { | 399 | { |