diff options
author | Robb Matzke <matzke@llnl.gov> | 1999-06-18 18:29:17 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1999-06-18 18:29:17 (GMT) |
commit | 15c540028457be0bd19476326e0f7139835cfea5 (patch) | |
tree | 69f7b58648c1865869c0636a51ce1ea95291aa5f | |
parent | ab16b9fab7c50577faf1f11574e04723ce6523c7 (diff) | |
download | hdf5-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.
-rw-r--r-- | examples/Makefile.in | 18 | ||||
-rw-r--r-- | src/H5Tconv.c | 4 |
2 files changed, 9 insertions, 13 deletions
diff --git a/examples/Makefile.in b/examples/Makefile.in index 801d71f..e3842bb 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -14,14 +14,10 @@ VPATH=.:@srcdir@ CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src @CPPFLAGS@ LIBHDF5=../src/libhdf5.la -# These are the programs that `make all' will build, `make install' -# will copy to the binaries directory, and `make uninstall' will -# remove from that directory. -PROGS=h5_chunk_read h5_compound h5_extend_write h5_group h5_read h5_write \ - h5_select h5_attribute - -# These are the programs that `make test' will run -TESTS= +# These are the programs that `make all' or `make tests' will build and which +# `make check' will run. List them in the order they should be run. +TEST_PROGS=h5_chunk_read h5_compound h5_extend_write h5_group h5_write \ + h5_read h5_select h5_attribute # These are the files that `make clean' (and derivatives) will remove from # this directory. @@ -30,13 +26,13 @@ CLEAN=*.h5 # List all source files here. The list of object files will be # created by replacing the `.c' with a `.o'. This list is necessary # for building automatic dependencies. -PROG_SRC=h5_chunk_read.c h5_compound.c h5_extend_write.c h5_group.c \ +TEST_SRC=h5_chunk_read.c h5_compound.c h5_extend_write.c h5_group.c \ h5_read.c h5_write.c h5_select.c h5_attribute.c -PROG_OBJ=$(PROG_SRC:.c=.lo) +TEST_OBJ=$(PROG_SRC:.c=.lo) # How to build the programs... they all depend on the hdf5 library -$(PROGS): $(LIBHDF5) +$(TEST_PROGS): $(LIBHDF5) h5_chunk_read: h5_chunk_read.lo @$(LT_LINK_EXE) $(CFLAGS) -o $@ h5_chunk_read.lo $(LIBHDF5) $(LDFLAGS) $(LIBS) 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; \ } |