Skip to content

Commit 5c4009d

Browse files
committed
show WASI errors
1 parent f350501 commit 5c4009d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/hmacmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ _hacl_hmac_state_update(HACL_HMAC_state *state, uint8_t *buf, Py_ssize_t len)
496496
#endif
497497
if (len > UINT32_MAX_AS_SSIZE_T) {
498498
PyGILState_STATE gstate = PyGILState_Ensure();
499-
PyErr_Format(PyExc_ValueError, "invalid length: %zd (max: %ju)", len, UINT32_MAX);
499+
PyErr_Format(PyExc_ValueError, "invalid length: %zd (max: %u)",
500+
len, UINT32_MAX);
500501
PyGILState_Release(gstate);
501502
return -1;
502503
}

0 commit comments

Comments
 (0)