Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Nov 29, 2020
1 parent 580dadd commit 228f7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/js/dom.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,7 @@ proc decodeURIComponent*(uri: cstring): cstring {.importc, nodecl.}
proc encodeURIComponent*(uri: cstring): cstring {.importc, nodecl.}
proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.}
proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.}
## see also `math.isNaN`.

proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.}

Expand Down
2 changes: 1 addition & 1 deletion lib/pure/math.nim
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ proc classify*(x: float): FloatClass =
return fcSubnormal
return fcNormal

proc isNaN*(x: float): bool =
proc isNaN*(x: SomeFloat): bool {.inline, since: (1,5,1).} =
## Returns whether `x` is a `NaN`, more efficiently than via `classify(x) == fcNan`.
## Does not work with: `--passc:-ffast-math`.
runnableExamples:
Expand Down

0 comments on commit 228f7a6

Please sign in to comment.