Branch: refs/heads/smoke-me/nan-tests-gh1147+422
Home: https://github.com/parrot/parrot
Commit: 682465a65d8fbc82fb05a91ae19bfb117e288ec9
https://github.com/parrot/parrot/commit/682465a65d8fbc82fb05a91ae19bfb117e288ec9
Author: Reini Urban <[email protected]>
Date: 2014-11-22 (Sat, 22 Nov 2014)
Changed paths:
M ChangeLog
M src/dynoplibs/math.ops
M t/dynoplibs/math.t
Log Message:
-----------
math dynop: Fix cmod_p_p_n* for NaN and Inf #1147
Return a string in this case.
Commit: c910c1db1ae161b522840506c2d8fb36782ddfd7
https://github.com/parrot/parrot/commit/c910c1db1ae161b522840506c2d8fb36782ddfd7
Author: Reini Urban <[email protected]>
Date: 2014-11-22 (Sat, 22 Nov 2014)
Changed paths:
M ChangeLog
M include/parrot/io.h
M src/dynoplibs/math.ops
M src/io/api.c
M src/ops/core_ops.c
M src/ops/math.ops
M src/pmc/complex.pmc
M src/pmc/integer.pmc
M t/op/inf_nan.t
Log Message:
-----------
[core] Fix floor, ceil and complex, integer math ops for NaN/Inf
Closes #422: Rounding Inf and NaN (in fact all math ops with floats),
throw EXCEPTION_LOSSY_CONVERSION, "Invalid number" when Nan/Inf => Int
otherwise returns a String PMC or if Float passes Nan/Inf through.
Closes GH #1147, no remaining NaN/Inf TODO tests.
Compare: https://github.com/parrot/parrot/compare/682465a65d8f^...c910c1db1ae1_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-commits