Fixed lack of parenthesis ruby warning that I was receiving on 1.8.6.

This commit is contained in:
John Nunemaker 2009-05-31 22:17:20 -04:00
parent 4d7f06a6be
commit 4cfa9cbcf3
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class BSON
buf.put_double(val)
else
if val > 2**32 / 2 - 1 or val < -2**32 / 2
raise RangeError.new "MongoDB can only handle 4-byte ints - try converting to a double before saving"
raise RangeError.new("MongoDB can only handle 4-byte ints - try converting to a double before saving")
end
buf.put_int(val)
end