1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Updated crc32c to be unsigned

This commit is contained in:
Bryan Roe
2020-04-08 19:17:18 -07:00
parent 34a1b1a4d5
commit cd18577a19

View File

@@ -1784,7 +1784,7 @@ duk_ret_t ILibDuktape_Polyfills_crc32c(duk_context *ctx)
{
duk_size_t len;
char *buffer = Duktape_GetBuffer(ctx, 0, &len);
duk_push_int(ctx, crc32c(0, (unsigned char*)buffer, (uint32_t)len));
duk_push_uint(ctx, crc32c(0, (unsigned char*)buffer, (uint32_t)len));
return(1);
}
#endif