diff options
author | Marco Paland <marco@paland.com> | 2019-01-26 15:37:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 15:37:33 +0100 |
commit | bf72dfb8dee9ee57463c7082aca520004cb7cb7c (patch) | |
tree | 4c2304c040d1c0ac7729e268f75fd39a82947dc9 /printf.c | |
parent | c7fbbfd600f929505181d938a2bcdfc6bd50aa07 (diff) | |
parent | 233bfcf45efcf222ea45704f65952f62bc166a90 (diff) | |
download | printf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.tar.gz printf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.tar.bz2 printf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.zip |
Merge pull request #32 from embeddedartistry/master
Address warnings in printf.c
Diffstat (limited to 'printf.c')
-rw-r--r-- | printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -754,7 +754,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;
}
|