v0 = vhex;
}
- if (precis > 0) {
+ if (has_precis) {
U8* ve = (subnormal ? vlnz + 1 : vend);
SSize_t vn = ve - (subnormal ? vfnz : vhex);
if ((SSize_t)(precis + 1) < vn) {
print "# no hexfloat tests\n";
}
-plan tests => 1408 + ($Q ? 0 : 12) + @hexfloat + 37;
+plan tests => 1408 + ($Q ? 0 : 12) + @hexfloat + 40;
use strict;
use Config;
is($s, $t->[2], "subnormal @$t got $s");
}
}
+
+# [rt.perl.org #128888]
+is(sprintf("%a", 1.03125), "0x1.08p+0");
+is(sprintf("%.1a", 1.03125), "0x1.0p+0");
+is(sprintf("%.0a", 1.03125), "0x1p+0", "[rt.perl.org #128888]");