summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-12 21:30:07 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-12 21:30:07 (GMT)
commit2e819451e9c4499d9537f7a120d7efb31655dd48 (patch)
tree45b6e52739f78065927b1a9cbcc11142aa2ba198 /src
parent93e661f16ba03b2acca208fb16518e6ce26e86d8 (diff)
downloadhdf5-2e819451e9c4499d9537f7a120d7efb31655dd48.zip
hdf5-2e819451e9c4499d9537f7a120d7efb31655dd48.tar.gz
hdf5-2e819451e9c4499d9537f7a120d7efb31655dd48.tar.bz2
[svn-r11396] Purpose:
Code cleanup. Description: g++ on sleipnir complained and exited failed because the malloc statement in ALIGNMENT was not properly casted. Solution: added the proper (char * ) casting. Platforms tested: Passed heping using gcc. Sleipnir g++ passed too but that was also because the default development mode is used.
Diffstat (limited to 'src')
-rw-r--r--src/H5detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index d2b77ac..d5af70c 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -359,7 +359,7 @@ precision (detected_t *d)
void (*_handler)(int) = signal(SIGBUS, sigbus_handler); \
void (*_handler2)(int) = signal(SIGSEGV, sigsegv_handler); \
\
- _buf = malloc(sizeof(TYPE)+align_g[NELMTS(align_g)-1]); \
+ _buf = (char*)malloc(sizeof(TYPE)+align_g[NELMTS(align_g)-1]); \
if (setjmp(jbuf_g)) _ano++; \
if (_ano<NELMTS(align_g)) { \
*((TYPE*)(_buf+align_g[_ano])) = _val; /*possible SIGBUS or SEGSEGV*/ \