--- ./runtime/Clib/cports.c.orig 2013-08-01 00:50:44.000000000 -0600
+++ ./runtime/Clib/cports.c 2013-08-02 13:12:53.750303243 -0600
@@ -2186,8 +2186,8 @@ bgl_file_to_string( char *path ) {
strerror( errno ),
string_to_bstring( path ) );
} else {
- obj_t res = make_string_sans_fill( sin.st_size );
- int n = read( fd, BSTRING_TO_STRING( res ), sin.st_size );
+ obj_t res = make_string_sans_fill( (int)sin.st_size );
+ ssize_t n = read( fd, BSTRING_TO_STRING( res ), sin.st_size );
close( fd );
@@ -2454,7 +2454,7 @@ bgl_sendchars( obj_t ip, obj_t op, long
}
#if( BGL_HAVE_SENDFILE )
} else {
- if( sz == -1 ) sz = in.st_size;
+ if( sz == -1 ) sz = (long) in.st_size;
if( sz != 0 ) {
#if( BGL_GC_HAVE_BLOCKING )
@@ -2559,7 +2559,7 @@ bgl_sendfile( obj_t name, obj_t op, long
strerror( errno ),
name );
}
- sz = sin.st_size;
+ sz = (long) sin.st_size;
}
#if( !BGL_HAVE_SENDFILE )