return items_written;
}
-int factor_vm::safe_ftell(FILE* stream) {
+off_t factor_vm::safe_ftell(FILE* stream) {
off_t offset;
for (;;) {
if ((offset = FTELL(stream)) == -1)
whence = SEEK_END;
break;
default:
- critical_error("Bad value for whence", whence);
+ general_error(ERROR_IO, tag_fixnum(EINVAL), false_object);
}
for (;;) {