summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-10 19:44:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-10 19:44:01 (GMT)
commitcf53e4aa2402cf6361581ea22a0d505deb2ceccb (patch)
treece914689b46298d1e8c86ce005715f8acd3ee148 /src
parented7556edba0fa03105d631d26aa486d500ea0a44 (diff)
downloadhdf5-cf53e4aa2402cf6361581ea22a0d505deb2ceccb.zip
hdf5-cf53e4aa2402cf6361581ea22a0d505deb2ceccb.tar.gz
hdf5-cf53e4aa2402cf6361581ea22a0d505deb2ceccb.tar.bz2
[svn-r7203] Purpose:
Code cleanup Description: Change names of macro parameters to H5_ASSIGN_OVERFLOW to make them easier to understand. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5private.h b/src/H5private.h
index fc73a6d..365c9d2 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -479,16 +479,16 @@
* A macro for detecting over/under-flow when assigning between types
*/
#ifndef NDEBUG
-#define H5_ASSIGN_OVERFLOW(var,expr,vartype,casttype) \
+#define H5_ASSIGN_OVERFLOW(var,expr,exprtype,vartype) \
{ \
- vartype _tmp_overflow=(vartype)(expr); \
- casttype _tmp_overflow2=(casttype)(_tmp_overflow); \
- assert((casttype)_tmp_overflow==_tmp_overflow2); \
+ exprtype _tmp_overflow=(exprtype)(expr); \
+ vartype _tmp_overflow2=(vartype)(_tmp_overflow); \
+ assert((vartype)_tmp_overflow==_tmp_overflow2); \
(var)=_tmp_overflow2; \
}
#else /* NDEBUG */
-#define H5_ASSIGN_OVERFLOW(var,expr,vartype,casttype) \
- (var)=(casttype)(expr);
+#define H5_ASSIGN_OVERFLOW(var,expr,exprtype,vartype) \
+ (var)=(vartype)(expr);
#endif /* NDEBUG */
/*