diff options
author | Phillip Johnston <phillip@embeddedartistry.com> | 2019-01-16 09:58:37 -0800 |
---|---|---|
committer | Phillip Johnston <phillip@embeddedartistry.com> | 2019-01-16 09:58:37 -0800 |
commit | 233bfcf45efcf222ea45704f65952f62bc166a90 (patch) | |
tree | 05dc204a1f46992e934790d49be7914ba1f919ef /printf.c | |
parent | c013a0e8d6bb57247074c748a05bbe7f43bdec6f (diff) | |
download | printf-233bfcf45efcf222ea45704f65952f62bc166a90.tar.gz printf-233bfcf45efcf222ea45704f65952f62bc166a90.tar.bz2 printf-233bfcf45efcf222ea45704f65952f62bc166a90.zip |
Add cast to uintptr to silent the const-cast warning
Diffstat (limited to 'printf.c')
-rw-r--r-- | printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -756,7 +756,7 @@ int fctprintf(void (*out)(char character, void* arg), void* arg, const char* for va_list va;
va_start(va, format);
const out_fct_wrap_type out_fct_wrap = { out, arg };
- const int ret = _vsnprintf(_out_fct, (char*)&out_fct_wrap, (size_t)-1, format, va);
+ const int ret = _vsnprintf(_out_fct, (char*)(uintptr_t)&out_fct_wrap, (size_t)-1, format, va);
va_end(va);
return ret;
}
|