diff options
Diffstat (limited to 'lib/cmath.rb')
-rw-r--r-- | lib/cmath.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmath.rb b/lib/cmath.rb index 74ef41de72..eef1134ef3 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -71,7 +71,7 @@ module CMath def log(*args) begin z, b = args - unless b.kind_of?(Numeric) + unless b.nil? || b.kind_of?(Numeric) raise TypeError, "Numeric Number required" end if z.real? and z >= 0 and (b.nil? or b >= 0) |