** Read an integer numeral and raises an error if it is larger ** than the maximum size for integers. */
| 1419 | ** than the maximum size for integers. |
| 1420 | */ |
| 1421 | static int getnumlimit (Header *h, const char **fmt, int df) { |
| 1422 | int sz = getnum(fmt, df); |
| 1423 | if (sz > MAXINTSIZE || sz <= 0) |
| 1424 | return luaL_error(h->L, "integral size (%d) out of limits [1,%d]", |
| 1425 | sz, MAXINTSIZE); |
| 1426 | return sz; |
| 1427 | } |
| 1428 | |
| 1429 | |
| 1430 | /* |
no test coverage detected