1
0
mirror of https://github.com/janet-lang/janet synced 2026-03-02 22:09:49 +00:00

Cast for warning on mingw DWORD printing.

This commit is contained in:
Calvin Rose
2026-03-01 12:23:37 -06:00
parent 95f2e233c5
commit 39f8cf207c

View File

@@ -1332,7 +1332,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) {
msgbuf,
sizeof(msgbuf),
NULL);
if (!*msgbuf) snprintf(msgbuf, sizeof(msgbuf), "%" PRIu32, cp_error_code);
if (!*msgbuf) snprintf(msgbuf, sizeof(msgbuf), "%" PRIu32, (uint32_t) cp_error_code);
char *c = msgbuf;
while (*c) {
if (*c == '\n' || *c == '\r') {