summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-03-09 23:06:07 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-03-09 23:06:07 (GMT)
commit2c3234ef72e359439918da691dab5aa78baa0dbb (patch)
treefda04f4bdf76ad982a75e757fde5c629989137cc /src/H5private.h
parent362894fbb1b798dbbe81f193c6db1ee27eda5182 (diff)
downloadhdf5-2c3234ef72e359439918da691dab5aa78baa0dbb.zip
hdf5-2c3234ef72e359439918da691dab5aa78baa0dbb.tar.gz
hdf5-2c3234ef72e359439918da691dab5aa78baa0dbb.tar.bz2
[svn-r1128] Changes for T3E port.
H5Flow.c: Document previous changes (same changes committed by Robb first.) H5Fprivate.h: Change DECODE macros to do sign extension. (Sign extension can be skipped if machines use the exact sizes.) H5Sall.c: Fixed a typo in return value. H5private.h: Fixed a typo and also changed the strategy of the int16_t and uint16_t typedef. Now will use short as long as it is at least 2 bytes big.
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 865c85d..1dae62c 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -232,9 +232,6 @@
* as the number of bits indicated in the type name. The `int8' types *must*
* be exactly one byte wide because we use it for pointer calculations to
* void* memory.
- *
- * For int16_t and uint16_t we use `short' only if it's exactly 2 bytes.
- * Otherwise we use `int' because it's probably faster.
*/
#if SIZEOF_INT8_T==0
typedef signed char int8_t;
@@ -255,7 +252,7 @@
#endif
#if SIZEOF_INT16_T>=2
-#elif SIZEOF_SHORT==2
+#elif SIZEOF_SHORT>=2
typedef short int16_t;
# undef SIZEOF_INT16_T
# define SIZEOF_INT16_T SIZEOF_SHORT