Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix array indexing

git-svn-id: http://luamongo.googlecode.com/svn/trunk@45 17e306f6-9439-11de-a13a-71b910e68cc8
  • Loading branch information...
commit 18940bc6370300b622583643b94bc502b635a541 1 parent 7546de3
nrich@ii.net authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  utils.cpp
2  utils.cpp
View
@@ -126,7 +126,7 @@ static void lua_append_bson(lua_State *L, const char *key, int stackpos, BSONObj
int index = lua_tointeger(L, -2);
stringstream ss;
- ss << index;
+ ss << index-1;
lua_append_bson(L, ss.str().c_str(), -1, &b);
lua_pop(L, 1);
Please sign in to comment.
Something went wrong with that request. Please try again.