diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-05-27 11:46:47 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-05-27 11:46:47 -0300 |
| commit | aa8d4a782d88738b3ea921cde5a450656da8fa63 (patch) | |
| tree | ecdc874d2476a40ad3857d2c03aaced9d0e04598 /lauxlib.c | |
| parent | efcf24be0c22cba57b298161bf4ab0561fd3c08e (diff) | |
| download | lua-aa8d4a782d88738b3ea921cde5a450656da8fa63.tar.gz lua-aa8d4a782d88738b3ea921cde5a450656da8fa63.tar.bz2 lua-aa8d4a782d88738b3ea921cde5a450656da8fa63.zip | |
Details (more uniformity in error messages)
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -476,7 +476,7 @@ static void *resizebox (lua_State *L, int idx, size_t newsize) { | |||
| 476 | UBox *box = (UBox *)lua_touserdata(L, idx); | 476 | UBox *box = (UBox *)lua_touserdata(L, idx); |
| 477 | void *temp = allocf(ud, box->box, box->bsize, newsize); | 477 | void *temp = allocf(ud, box->box, box->bsize, newsize); |
| 478 | if (temp == NULL && newsize > 0) /* allocation error? */ | 478 | if (temp == NULL && newsize > 0) /* allocation error? */ |
| 479 | luaL_error(L, "not enough memory for buffer allocation"); | 479 | luaL_error(L, "not enough memory"); |
| 480 | box->box = temp; | 480 | box->box = temp; |
| 481 | box->bsize = newsize; | 481 | box->bsize = newsize; |
| 482 | return temp; | 482 | return temp; |
