Skip to content

Commit bf72dfb

Browse files
authored
Merge pull request #32 from embeddedartistry/master
Address warnings in printf.c
2 parents c7fbbfd + 233bfcf commit bf72dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

printf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ int fctprintf(void (*out)(char character, void* arg), void* arg, const char* for
754754
va_list va;
755755
va_start(va, format);
756756
const out_fct_wrap_type out_fct_wrap = { out, arg };
757-
const int ret = _vsnprintf(_out_fct, (char*)&out_fct_wrap, (size_t)-1, format, va);
757+
const int ret = _vsnprintf(_out_fct, (char*)(uintptr_t)&out_fct_wrap, (size_t)-1, format, va);
758758
va_end(va);
759759
return ret;
760760
}

0 commit comments

Comments
 (0)