diff options
| -rw-r--r-- | lapi.c | 2 | ||||
| -rw-r--r-- | lgc.c | 2 | ||||
| -rw-r--r-- | lstrlib.c | 2 |
3 files changed, 3 insertions, 3 deletions
| @@ -366,7 +366,7 @@ LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) { | |||
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | 368 | ||
| 369 | LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) { | 369 | LUA_API unsigned lua_numbertocstring (lua_State *L, int idx, char *buff) { |
| 370 | const TValue *o = index2value(L, idx); | 370 | const TValue *o = index2value(L, idx); |
| 371 | if (ttisnumber(o)) { | 371 | if (ttisnumber(o)) { |
| 372 | unsigned len = luaO_tostringbuff(o, buff); | 372 | unsigned len = luaO_tostringbuff(o, buff); |
| @@ -1672,7 +1672,7 @@ static l_mem singlestep (lua_State *L, int fast) { | |||
| 1672 | GCTM(L); /* call one finalizer */ | 1672 | GCTM(L); /* call one finalizer */ |
| 1673 | stepresult = CWUFIN; | 1673 | stepresult = CWUFIN; |
| 1674 | } | 1674 | } |
| 1675 | else { /* no more finalizers or emergency mode or no enough stack | 1675 | else { /* no more finalizers or emergency mode or not enough stack |
| 1676 | to run finalizers */ | 1676 | to run finalizers */ |
| 1677 | g->gcstate = GCSpause; /* finish collection */ | 1677 | g->gcstate = GCSpause; /* finish collection */ |
| 1678 | stepresult = step2pause; | 1678 | stepresult = step2pause; |
| @@ -968,7 +968,7 @@ static int str_gsub (lua_State *L) { | |||
| 968 | reprepstate(&ms); /* (re)prepare state for new match */ | 968 | reprepstate(&ms); /* (re)prepare state for new match */ |
| 969 | if ((e = match(&ms, src, p)) != NULL && e != lastmatch) { /* match? */ | 969 | if ((e = match(&ms, src, p)) != NULL && e != lastmatch) { /* match? */ |
| 970 | n++; | 970 | n++; |
| 971 | changed = add_value(&ms, &b, src, e, tr) | changed; | 971 | changed = add_value(&ms, &b, src, e, tr) || changed; |
| 972 | src = lastmatch = e; | 972 | src = lastmatch = e; |
| 973 | } | 973 | } |
| 974 | else if (src < ms.src_end) /* otherwise, skip one character */ | 974 | else if (src < ms.src_end) /* otherwise, skip one character */ |
