MCPcopy Create free account
hub / github.com/NetHack/NetHack / FITSint_

Function FITSint_

src/alloc.c:265–273  ·  view source on GitHub ↗

cast to int or panic on overflow; use via macro */

Source from the content-addressed store, hash-verified

263
264/* cast to int or panic on overflow; use via macro */
265int
266FITSint_(LUA_INTEGER i, const char *file, int line)
267{
268 int iret = (int) i;
269
270 if (iret != i)
271 panic("Overflow at %s:%d", file, line);
272 return iret;
273}
274
275unsigned
276FITSuint_(unsigned long long ull, const char *file, int line)

Callers

nothing calls this directly

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected