Skip to content

Commit

Permalink
samples: logging: dictionary: fix double-promotion warning
Browse files Browse the repository at this point in the history
Double promotion warnings are generated with the flag -Wdouble-promotion

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
  • Loading branch information
XenuIsWatching authored and nashif committed Aug 23, 2023
1 parent cdbcdb8 commit 8023d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/subsys/logging/dictionary/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main(void)

LOG_DBG("float %f, double %f", (double)f, d);
#ifdef CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE
long double ld = 70.71;
long double ld = 70.71L;

LOG_DBG("long double %Lf", ld);
#endif
Expand Down

0 comments on commit 8023d59

Please sign in to comment.