diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 7 |
1 files changed, 1 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.122 2005/08/15 14:12:32 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.123 2005/08/26 17:36:32 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -516,12 +516,7 @@ static int str_find_aux (lua_State *L, int find) { | |||
| 516 | if (find) { | 516 | if (find) { |
| 517 | lua_pushinteger(L, s1-s+1); /* start */ | 517 | lua_pushinteger(L, s1-s+1); /* start */ |
| 518 | lua_pushinteger(L, res-s); /* end */ | 518 | lua_pushinteger(L, res-s); /* end */ |
| 519 | #if defined(LUA_COMPAT_FIND) | ||
| 520 | return push_captures(&ms, NULL, 0) + 2; | 519 | return push_captures(&ms, NULL, 0) + 2; |
| 521 | #else | ||
| 522 | return 2; | ||
| 523 | #endif | ||
| 524 | |||
| 525 | } | 520 | } |
| 526 | else | 521 | else |
| 527 | return push_captures(&ms, s1, res); | 522 | return push_captures(&ms, s1, res); |
