cast to int or panic on overflow; use via macro */
| 263 | |
| 264 | /* cast to int or panic on overflow; use via macro */ |
| 265 | int |
| 266 | FITSint_(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 | |
| 275 | unsigned |
| 276 | FITSuint_(unsigned long long ull, const char *file, int line) |