v8.39 fix warnings for int to size_t conversion
v8.39 see change log