From 2e819451e9c4499d9537f7a120d7efb31655dd48 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 12 Sep 2005 16:30:07 -0500 Subject: [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. --- src/H5detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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