aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Paland <marco@paland.com>2019-01-26 15:37:33 +0100
committerGitHub <noreply@github.com>2019-01-26 15:37:33 +0100
commitbf72dfb8dee9ee57463c7082aca520004cb7cb7c (patch)
tree4c2304c040d1c0ac7729e268f75fd39a82947dc9
parentc7fbbfd600f929505181d938a2bcdfc6bd50aa07 (diff)
parent233bfcf45efcf222ea45704f65952f62bc166a90 (diff)
downloadprintf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.tar.gz
printf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.tar.bz2
printf-bf72dfb8dee9ee57463c7082aca520004cb7cb7c.zip
Merge pull request #32 from embeddedartistry/master
Address warnings in printf.c
-rw-r--r--printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printf.c b/printf.c
index 7df2290..ce67626 100644
--- a/printf.c
+++ b/printf.c
@@ -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;
}