moai/luamongo — pull request #20 by TimMensch (2012-06-25 22:01:08+00:00)
Title: Fix BSON parsing to treat numbers larger than INT_MAX as doubles

Hi,

I had a case where ended up pushing large numbers into MongoDB, and they ended up squeezed into an int32_t. This patch adds a simple "If < INT_MAX" at the point where it decides to use an int or a double.

Tim