Overview
| Artifact ID: | 1ddd5dd92ff6aca91a06a44b523dbcf07cf5f034edc501aaf5fa1c15a7b5df8c |
|---|---|
| Ticket: | b7834045b9126bb6aa3457ea6b2be32c080e759f
MS-VC 6 on core-8-6-branch: compile error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 |
| User & Date: | oehhar on 2025-05-05 16:07:19 |
Changes
- icomment:
Jan, thanks for the fix. I tested on MS-VC 6 32 bit: <verbatim> ==== scan-15.1 scan %g overflow for small numbers and big mantissa bug 42d14c495a FAILED ==== Contents of test case: set result [list] # xfail: n<num> = not expected at all, x<num> expected when unfixed foreach {exp numdig ret xfail} { -321 190 1.111647703142804724397279783953498087821e-321 n0 -321 191 1.111647703142804724397279783953498087821e-321 x1 -321 300 1.111647703142804724397279783953498087821e-321 x2 -321 1600 1.111647703142804724397279783953498087821e-321 x3 -400 110 0 n4 -400 111 0 n5 -400 300 0 n6 -221 290 1.111111111111110993454921768172890541494e-221 n7 -221 291 1.111111111111110993454921768172890541494e-221 x8 -221 400 1.111111111111110993454921768172890541494e-221 x9 -221 1600 1.111111111111110993454921768172890541494e-221 x10 -121 390 1.111111111111111182884141698869046969295e-121 n11 -121 391 1.111111111111111182884141698869046969295e-121 x12 -121 500 1.111111111111111182884141698869046969295e-121 x13 -121 1600 1.111111111111111182884141698869046969295e-121 x14 308 202 1.111111111111111167662077577927612945036e+308 n15 308 203 1.111111111111111167662077577927612945036e+308 n16 308 300 1.111111111111111167662077577927612945036e+308 n17 308 1600 1.111111111111111167662077577927612945036e+308 x18 400 110 inf n19 400 111 inf n20 400 300 inf n21 221 291 1.111111111111111207481621395250718679869e+221 n22 221 292 1.111111111111111207481621395250718679869e+221 n23 221 400 1.111111111111111207481621395250718679869e+221 n24 221 1600 1.111111111111111207481621395250718679869e+221 x25 121 391 1.11111111111111112711771954138363761759e+121 n26 121 392 1.11111111111111112711771954138363761759e+121 n27 121 500 1.11111111111111112711771954138363761759e+121 n28 121 1600 1.11111111111111112711771954138363761759e+121 x29 } { set s 1.[string repeat 1 $numdig]e$exp set d "no_scan" scan $s %g d set r [format %.40g $d] if {$r ne $ret} { lappend result $xfail=[format %.40g $d] } } set result ---- Result was: n0=1.1116477031428047e-321 x1=1.1116477031428047e-321 x2=1.1116477031428047e-321 x3=1.1116477031428047e-321 n7=1.111111111111111e-221 x8=1.111111111111111e-221 x9=1.111111111111111e-221 x10=1.111111111111111e-221 n11=1.1111111111111112e-121 x12=1.1111111111111112e-121 x13=1.1111111111111112e-121 x14=1.1111111111111112e-121 n15=1.1111111111111112e+308 n16=1.1111111111111112e+308 n17=1.1111111111111112e+308 x18=1.1111111111111112e+308 n19=1.#INF n20=1.#INF n21=1.#INF n22=1.1111111111111112e+221 n23=1.1111111111111112e+221 n24=1.1111111111111112e+221 x25=1.1111111111111112e+221 n26=1.1111111111111111e+121 n27=1.1111111111111111e+121 n28=1.1111111111111111e+121 x29=1.1111111111111111e+121 ---- Result should have been (exact matching): ==== scan-15.1 FAILED </verbatim> It does not fail with MS-VS 2022 on 64 bit. There, all is still ok. We may accept this failure as platform specific. Nevertheless, to cast this for all compilers on core-8-6-branch scares me a bit... Thanks for all, Harald - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"