mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
[svn-r222] Problem: UINT64DECODE and INT64DECODE were not working because it did
not assign the decoded value back to n. Solution: Removed temporary variable _n (don't see why it is needed.) Use the variable n directly. Platform tested: IRIX64 -64
This commit is contained in:
parent
34e8bb7d12
commit
0e55445d79
@ -150,22 +150,22 @@
|
||||
|
||||
# define INT64DECODE(p, n) { \
|
||||
/* WE DON'T CHECK FOR OVERFLOW! */ \
|
||||
int64 _n = 0; \
|
||||
intn _i; \
|
||||
n = 0; \
|
||||
(p) += 8; \
|
||||
for (_i=0; _i<sizeof(int64); _i++, _n<<=8) { \
|
||||
_n |= *(--p); \
|
||||
for (_i=0; _i<sizeof(int64); _i++, n<<=8) { \
|
||||
n |= *(--p); \
|
||||
} \
|
||||
(p) += 8; \
|
||||
}
|
||||
|
||||
# define UINT64DECODE(p, n) { \
|
||||
/* WE DON'T CHECK FOR OVERFLOW! */ \
|
||||
uint64 _n = 0; \
|
||||
intn _i; \
|
||||
n = 0; \
|
||||
(p) += 8; \
|
||||
for (_i=0; _i<sizeof(uint64); _i++, _n<<=8) { \
|
||||
_n |= *(--p); \
|
||||
for (_i=0; _i<sizeof(uint64); _i++, n<<=8) { \
|
||||
n |= *(--p); \
|
||||
} \
|
||||
(p) += 8; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user