Silence a couple of float conversion warnings in dumplib.c

This commit is contained in:
Peter Hill 2023-11-28 17:39:10 +00:00
parent 19027c77b9
commit 9fb3ab110f
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -1244,10 +1244,10 @@ double to_double(const ncvar_t *varp, const void *valp) {
dd = *(unsigned int *)valp;
break;
case NC_INT64:
dd = *(long long *)valp;
dd = (double)*(long long *)valp;
break;
case NC_UINT64:
dd = *(unsigned long long *)valp;
dd = (double)*(unsigned long long *)valp;
break;
default:
error("to_double: type not numeric primitive");