summaryrefslogtreecommitdiffstats
path: root/src/H5Fprivate.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1998-02-05 17:13:43 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1998-02-05 17:13:43 (GMT)
commit0e55445d79ef1abea2e62cbe140370bcd9136e6a (patch)
treeb12f1185cd798fa98ca513356327d2ab10c0b0ed /src/H5Fprivate.h
parent34e8bb7d12679367246278b97d59d6f78afc17f8 (diff)
downloadhdf5-0e55445d79ef1abea2e62cbe140370bcd9136e6a.zip
hdf5-0e55445d79ef1abea2e62cbe140370bcd9136e6a.tar.gz
hdf5-0e55445d79ef1abea2e62cbe140370bcd9136e6a.tar.bz2
[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
Diffstat (limited to 'src/H5Fprivate.h')
-rw-r--r--src/H5Fprivate.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h
index 19b1380..76ca1f6 100644
--- a/src/H5Fprivate.h
+++ b/src/H5Fprivate.h
@@ -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; \
}