Project

General

Profile

Actions

Bug #818

open

printf(FMT, [+/-]HUGE_VALL) produce wrong result on 32-bit platforms

Added by Dmitry M. over 9 years ago. Updated over 8 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
Start date:
12/26/2014
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm, mips, x86
Host OS:
Toolchain:
Android version:
CrystaX NDK Version:

Description

Running device test [armeabi-v7a]: crystax-test-stdio2 (test-printfloat)
/opt/android/android-sdk-mac/platform-tools/adb -s "HT011P800177" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test-printfloat"
1..11
ok 1 - printfloat
jni/test-printfloat.c:106: printf("%4.2Le", HUGE_VALL) ==> [1.80e+308], expected [ inf]
1
---> TEST FAILED!!

Running device test [armeabi-v7a]: crystax-test-stdio2 (test-printfloat)
/opt/android/android-sdk-mac/platform-tools/adb -s "HT011P800177" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test-printfloat"
1..11
ok 1 - printfloat
jni/test-printfloat.c:112: printf("%Lf", -HUGE_VALL) ==> [-17976931348623159077293051907890247336179769789423065727343008115773267580550096313270847732240753], expected [-inf]
1
---> TEST FAILED!!

Actions

Also available in: Atom PDF