Skip to content

Commit

Permalink
app_lua: rmode 1 corresponds to int returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Aug 27, 2018
1 parent c1701cf commit b704720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/app_lua/app_lua_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,9 @@ static int lua_sr_pv_push_val_null (lua_State *L, int rmode)
static int lua_sr_pv_push_valx (lua_State *L, int rmode, int vi, str *vs)
{
if(rmode==1) {
lua_pushlstring(L, vs->s, vs->len);
} else {
lua_pushinteger(L, vi);
} else {
lua_pushlstring(L, vs->s, vs->len);
}
return 1;
}
Expand Down

0 comments on commit b704720

Please sign in to comment.