break;
}
- catch(const must_start_gc_again e)
+ catch(const must_start_gc_again &)
{
/* We come back here if a generation is full */
start_gc_again();
data_root<byte_array> buf(allot_uninitialized_array<byte_array>(size),this);
- int c = safe_fread(buf.untagged() + 1,1,size,file);
+ size_t c = safe_fread(buf.untagged() + 1,1,size,file);
if(c == 0)
ctx->push(false_object);
else
{
FILE *file = pop_file_handle();
fixnum ch = to_fixnum(ctx->pop());
- safe_fputc(ch, file);
+ safe_fputc((int)ch, file);
}
void factor_vm::primitive_fwrite()
void factor_vm::primitive_fseek()
{
FILE *file = pop_file_handle();
- int whence = to_fixnum(ctx->pop());
- off_t offset = to_signed_8(ctx->pop());
+ int whence = (int)to_fixnum(ctx->pop());
+ off_t offset = (off_t)to_signed_8(ctx->pop());
safe_fseek(file,offset,whence);
}