Project

General

Profile

Bug #818

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

Added by Dmitry Moskalchuk over 4 years ago. Updated almost 4 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 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!!

History

#1

Updated by Dmitry Moskalchuk over 4 years ago

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

#2

Updated by Dmitry Moskalchuk over 4 years ago

  • Description updated (diff)
#3

Updated by Dmitry Moskalchuk over 4 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
#4

Updated by Dmitry Moskalchuk over 4 years ago

  • Target version set to 10.1.0
#5

Updated by Dmitry Moskalchuk over 4 years ago

  • Target version deleted (10.1.0)
#6

Updated by Dmitry Moskalchuk over 4 years ago

  • Priority changed from Low to Normal
#7

Updated by Dmitry Moskalchuk over 4 years ago

  • Target version set to 10.3.0
#8

Updated by Dmitry Moskalchuk almost 4 years ago

  • Target version changed from 10.3.0 to 11.0.0

Also available in: Atom PDF