Skip to content

Commit

Permalink
fix bug that pb.lua can not boostrap :(
Browse files Browse the repository at this point in the history
  • Loading branch information
starwing committed May 12, 2015
1 parent a49ee6d commit c1e055a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ static int Ldec_pos(lua_State *L) {
static int Ldec_len(lua_State *L) {
pb_Decoder *dec = check_decoder(L, 1);
int type = lua_type(L, 2);
lua_pushinteger(L, (lua_Integer)(dec->end - dec->p));
lua_pushinteger(L, (lua_Integer)(dec->end - dec->s));
lua_pushinteger(L, (lua_Integer)dec->len);
if (type <= 0)
dec->end = dec->s + dec->len;
Expand Down

0 comments on commit c1e055a

Please sign in to comment.