Skip to content
Permalink
Browse files

fix typo

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 10, 2013
1 parent 0ece2b8 commit d3a943b2cae6d9a95ac22aaf57e1d6ed940e61b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 topaz/modules/math.py
@@ -108,7 +108,7 @@ def method_lgamma(self, space, value):
except (ValueError, OverflowError):
res = rfloat.INFINITY
gamma = space.float_w(space.send(self, space.newsymbol("gamma"), [space.newfloat(value)]))
sign = 1 if gamma >= 0 else -1 if gamma < 0 else 0
sign = 1 if gamma > 0 else -1 if gamma < 0 else 0
return space.newarray([space.newfloat(res), space.newint(sign)])

@moduledef.function("hypot", value1="float", value2="float")

0 comments on commit d3a943b

Please sign in to comment.
You can’t perform that action at this time.