InternetofAwesome commented on a change in pull request #1582: use float
instead of double
URL: https://github.com/apache/mynewt-core/pull/1582#discussion_r244126876
##########
File path: libc/baselibc/src/tinyprintf.c
##########
@@ -356,7 +356,7 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
#if MYNEWT_VAL(FLOAT_USER)
case 'f':
p.base = 10;
- d = va_arg(va, double);
+ d = (float)va_arg(va, double);
Review comment:
Yeah, I tried that first, and looked into a workaround. Unfortunately,
without doing some pretty nasty hacking, it wasn't feasible.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services