Skip to content

Commit 3c01e2a

Browse files
fix double promotion warning (#4731)
1 parent 418be9d commit 3c01e2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,8 @@ print_i64_wrapper(wasm_exec_env_t exec_env, int64 i64)
10141014
static void
10151015
print_i32_f32_wrapper(wasm_exec_env_t exec_env, int32 i32, float f32)
10161016
{
1017-
os_printf("in specttest.print_i32_f32(%" PRId32 ", %f)\n", i32, f32);
1017+
os_printf("in specttest.print_i32_f32(%" PRId32 ", %f)\n", i32,
1018+
(double)f32);
10181019
}
10191020

10201021
static void
@@ -1026,7 +1027,7 @@ print_f64_f64_wrapper(wasm_exec_env_t exec_env, double f64_1, double f64_2)
10261027
static void
10271028
print_f32_wrapper(wasm_exec_env_t exec_env, float f32)
10281029
{
1029-
os_printf("in specttest.print_f32(%f)\n", f32);
1030+
os_printf("in specttest.print_f32(%f)\n", (double)f32);
10301031
}
10311032

10321033
static void

0 commit comments

Comments
 (0)