summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-06-18 18:29:17 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-06-18 18:29:17 (GMT)
commit15c540028457be0bd19476326e0f7139835cfea5 (patch)
tree69f7b58648c1865869c0636a51ce1ea95291aa5f /src/H5Tconv.c
parentab16b9fab7c50577faf1f11574e04723ce6523c7 (diff)
downloadhdf5-15c540028457be0bd19476326e0f7139835cfea5.zip
hdf5-15c540028457be0bd19476326e0f7139835cfea5.tar.gz
hdf5-15c540028457be0bd19476326e0f7139835cfea5.tar.bz2
[svn-r1364]
Changes since 19990618 ---------------------- ./Makefile.in Running `make' in the top directory recurses into the examples directory also except if the make target is one of: lib, progs, check, test, _test, install, uninstall. ./examples/Makefile.in Changed programs into tests, which just means that `make tests' does what `make progs' used to do and that `make check' runs the executables. ./src/H5Tconv.c Fixed a typo in the unsigned-to-signed native converter for large types to small types. This fixes a bug on baldric and possibly other machines for the `dtypes' test. Also fixed a signed vs. unsigned warning.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 7e2a86b..f469c61 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -193,7 +193,7 @@ static intn interface_initialize_g = 0;
(H5T_overflow_g)(src_id, dst_id, s, d)<0) { \
*((DT*)d) = 0; \
} \
- } else if (sizeof(ST)>sizeof(DT) && *((ST*)s)>(D_MAX)) { \
+ } else if (sizeof(ST)>sizeof(DT) && *((ST*)s)>(ST)(D_MAX)) { \
/*sign vs. unsign ok in previous line*/ \
if (!H5T_overflow_g || \
(H5T_overflow_g)(src_id, dst_id, s, d)<0) { \
@@ -214,7 +214,7 @@ static intn interface_initialize_g = 0;
*((DT*)d) = (D_MAX); \
} \
} else { \
- *((DT*)d) = (DT)(*s); \
+ *((DT*)d) = (DT)(*((ST*)s)); \
} \
} CI_END; \
}