Skip to content

Commit 9a877c2

Browse files
committed
Use overload to avoid incorrect linking of symbols
1 parent 8903eca commit 9a877c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ def log1p(x: f64) -> f64:
688688
return log(1.0 + x)
689689

690690

691+
@overload
691692
def fmod(x: f64, y: f64) -> f64:
692693
if y == 0.0:
693694
raise ValueError('math domain error')

0 commit comments

Comments
 (0)