mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix jni with %Lg instead of %Lf
Fix warnings due to improper formed define tag in h5diff
This commit is contained in:
@@ -784,10 +784,8 @@ h5str_sprintf
|
||||
if (NULL == (this_str = (char *) HDmalloc(27)))
|
||||
H5_OUT_OF_MEMORY_ERROR(ENVONLY, "h5str_sprintf: failed to allocate string buffer");
|
||||
|
||||
H5_GCC_DIAG_OFF("format-overflow")
|
||||
if (HDsprintf(this_str, "%Lf", tmp_ldouble) < 0)
|
||||
if (HDsprintf(this_str, "%Lg", tmp_ldouble) < 0)
|
||||
H5_JNI_FATAL_ERROR(ENVONLY, "h5str_sprintf: HDsprintf failure");
|
||||
H5_GCC_DIAG_ON("format-overflow")
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user