Project

General

Profile

Actions

Bug #818

open

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

Added by Dmitry M. almost 10 years ago. Updated about 9 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 #1

Updated by Dmitry M. almost 10 years ago

Don't forget to update tests/device/crystax-test-stdio2 when this bug will be fixed

Actions #2

Updated by Dmitry M. almost 10 years ago

  • Description updated (diff)
Actions #3

Updated by Dmitry M. almost 10 years ago

  • Subject changed from printf("%4.2Le", HUGE_VALL) produce wrong result on 32-bit platforms to printf(FMT, [+/-]HUGE_VALL) produce wrong result on 32-bit platforms
Actions #4

Updated by Dmitry M. almost 10 years ago

  • Target version set to 10.1.0
Actions #5

Updated by Dmitry M. almost 10 years ago

  • Target version deleted (10.1.0)
Actions #6

Updated by Dmitry M. almost 10 years ago

  • Priority changed from Low to Normal
Actions #7

Updated by Dmitry M. over 9 years ago

  • Target version set to 10.3.0
Actions #8

Updated by Dmitry M. about 9 years ago

  • Target version changed from 10.3.0 to 11.0.0
Actions

Also available in: Atom PDF