summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Tnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tnative.c b/src/H5Tnative.c
index 9fd9bbe..92e5b02 100644
--- a/src/H5Tnative.c
+++ b/src/H5Tnative.c
@@ -719,7 +719,7 @@ H5T_get_native_float(size_t size, H5T_direction_t direction, size_t *struct_alig
native_size = sizeof(long double);
} else { /* If not match, return the biggest datatype */
match=H5T_NATIVE_FLOAT_MATCH_LDOUBLE;
- native_size = sizeof(long);
+ native_size = sizeof(long double);
}
} else {
if(size>=sizeof(long double)) {