From 4cfa9cbcf3fc7a76e78ccfc39bf42a7d034da937 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Sun, 31 May 2009 22:17:20 -0400 Subject: [PATCH] Fixed lack of parenthesis ruby warning that I was receiving on 1.8.6. --- lib/mongo/util/bson.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/util/bson.rb b/lib/mongo/util/bson.rb index a4acd43..23267d0 100644 --- a/lib/mongo/util/bson.rb +++ b/lib/mongo/util/bson.rb @@ -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