mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
don't run one example on 32-bit machines (#17655)
This example seems to break our 32-bit nightlies builds. This is just a temporary solution (TM) until we figure out a better one.
This commit is contained in:
@@ -951,9 +951,10 @@ func frexp*[T: float32|float64](x: T): tuple[frac: T, exp: int] {.inline.} =
|
||||
doAssert frexp(0.0) == (0.0, 0)
|
||||
|
||||
# special cases:
|
||||
doAssert frexp(-0.0).frac.signbit # signbit preserved for +-0
|
||||
doAssert frexp(Inf).frac == Inf # +- Inf preserved
|
||||
doAssert frexp(NaN).frac.isNaN
|
||||
when sizeof(int) == 8:
|
||||
doAssert frexp(-0.0).frac.signbit # signbit preserved for +-0
|
||||
doAssert frexp(Inf).frac == Inf # +- Inf preserved
|
||||
doAssert frexp(NaN).frac.isNaN
|
||||
|
||||
when not defined(js):
|
||||
var exp: cint
|
||||
|
||||
Reference in New Issue
Block a user