** Read an integer numeral and raises an error if it is larger ** than the maximum size for integers. */
| 1464 | ** than the maximum size for integers. |
| 1465 | */ |
| 1466 | static int getnumlimit (Header *h, const char **fmt, int df) { |
| 1467 | int sz = getnum(fmt, df); |
| 1468 | if (l_unlikely(sz > MAXINTSIZE || sz <= 0)) |
| 1469 | return luaL_error(h->L, "integral size (%d) out of limits [1,%d]", |
| 1470 | sz, MAXINTSIZE); |
| 1471 | return sz; |
| 1472 | } |
| 1473 | |
| 1474 | |
| 1475 | /* |
no test coverage detected