tile2x11.c needs a local copy of FITSuint_ for alloc.o
This commit is contained in:
@@ -240,3 +240,15 @@ main(int argc, char *argv[])
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* we need a local copy of this for alloc.o and because we don't have panic() */
|
||||
unsigned
|
||||
FITSuint_(unsigned long long i, const char *file, int line){
|
||||
unsigned ret = (unsigned)i;
|
||||
if (ret != i) {
|
||||
Fprintf(stderr, "Overflow at %s:%d", file, line);
|
||||
exit(1);
|
||||
}
|
||||
return (unsigned)i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user