diff --git a/src/stdio/src/printf.rs b/src/stdio/src/printf.rs index ead0a05cf3..54ce1f7644 100644 --- a/src/stdio/src/printf.rs +++ b/src/stdio/src/printf.rs @@ -36,7 +36,7 @@ pub unsafe fn printf(mut w: W, format: *const c_char, mut ap: VaL found_percent = false; } 'f' | 'F' => { - let a: f64 = mem::transmute(ap.get::()); + let a = ap.get::(); w.write_fmt(format_args!("{}", a)); diff --git a/tests/atof.c b/tests/atof.c index b6668aab89..1bfb9d0e22 100644 --- a/tests/atof.c +++ b/tests/atof.c @@ -2,7 +2,7 @@ #include int main(int argc, char* argv[]) { - double d = atof("1.0"); + double d = atof("-3.14"); printf("%f\n", d); return 0; } diff --git a/va_list b/va_list index 4762a18450..1945668b2f 160000 --- a/va_list +++ b/va_list @@ -1 +1 @@ -Subproject commit 4762a184501beedbb58ea218f0c84fea85685c35 +Subproject commit 1945668b2fc6e96c498003dce700ebaf95108fac