mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r7319] Purpose:
Code cleanup Description: Use unsigned integers to print 'haddr_t's Platforms tested: h5committested
This commit is contained in:
parent
f3c2fbaff5
commit
a89594728a
6
src/H5.c
6
src/H5.c
@ -1049,12 +1049,12 @@ HDfprintf(FILE *stream, const char *fmt, ...)
|
||||
/*lint --e{506} Don't issue warnings about constant value booleans */
|
||||
/*lint --e{774} Don't issue warnings boolean within 'if' always evaluates false/true */
|
||||
if (sizeof(x)==H5_SIZEOF_INT) {
|
||||
HDstrcat(format_templ, "d");
|
||||
HDstrcat(format_templ, "u");
|
||||
} else if (sizeof(x)==H5_SIZEOF_LONG) {
|
||||
HDstrcat(format_templ, "ld");
|
||||
HDstrcat(format_templ, "lu");
|
||||
} else if (sizeof(x)==H5_SIZEOF_LONG_LONG) {
|
||||
HDstrcat(format_templ, H5_PRINTF_LL_WIDTH);
|
||||
HDstrcat(format_templ, "d");
|
||||
HDstrcat(format_templ, "u");
|
||||
}
|
||||
n = fprintf(stream, format_templ, x);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user