Fix jni with %Lg instead of %Lf

Fix warnings due to improper formed define tag in h5diff
This commit is contained in:
Allen Byrne
2020-09-29 11:42:17 -05:00
parent 274cd0ba1d
commit 3f15fb3522
4 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -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;
}