silence compile warning from -Wsign-conversion

This commit is contained in:
Wei-keng Liao 2016-10-10 00:07:24 -05:00
parent dbb9be59d2
commit 8bf99abe77

View File

@ -709,7 +709,7 @@ putNCvx_$1_$2(NC3_INFO* ncp, const NC_var *varp,
remaining -= extent;
if(remaining == 0)
break; /* normal loop exit */
offset += extent;
offset += (off_t)extent;
value += nput;
}
@ -868,7 +868,7 @@ getNCvx_$1_$2(const NC3_INFO* ncp, const NC_var *varp,
remaining -= extent;
if(remaining == 0)
break; /* normal loop exit */
offset += extent;
offset += (off_t)extent;
value += nget;
}