[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:
Albert Cheng 1998-02-05 12:13:43 -05:00
parent 34e8bb7d12
commit 0e55445d79

View File

@ -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; \
}