diff --git a/libvips/iofuncs/streamiu.c b/libvips/iofuncs/streamiu.c index 12aa4026..e5711b05 100644 --- a/libvips/iofuncs/streamiu.c +++ b/libvips/iofuncs/streamiu.c @@ -83,7 +83,7 @@ vips_streamiu_read_real( VipsStreami *streami, bytes_read = 0; g_signal_emit( streami, vips_streamiu_signals[SIG_READ], 0, - buffer, length, &bytes_read ); + buffer, (gint64) length, &bytes_read ); VIPS_DEBUG_MSG( " vips_streamiu_read_real, seen %zd bytes\n", bytes_read ); @@ -182,9 +182,9 @@ vips_streamiu_class_init( VipsStreamiuClass *class ) G_SIGNAL_ACTION, G_STRUCT_OFFSET( VipsStreamiuClass, read ), NULL, NULL, - vips_INT64__INT64_INT, + vips_INT64__POINTER_INT64, G_TYPE_INT64, 2, - G_TYPE_INT64, G_TYPE_INT ); + G_TYPE_POINTER, G_TYPE_INT64 ); /** * VipsStreamiu::seek: @@ -204,9 +204,9 @@ vips_streamiu_class_init( VipsStreamiuClass *class ) G_SIGNAL_ACTION, G_STRUCT_OFFSET( VipsStreamiuClass, seek ), NULL, NULL, - vips_INT64__POINTER_INT64, + vips_INT64__INT64_INT, G_TYPE_INT64, 2, - G_TYPE_POINTER, G_TYPE_INT64 ); + G_TYPE_INT64, G_TYPE_INT ); } diff --git a/libvips/iofuncs/streamou.c b/libvips/iofuncs/streamou.c index 951cfa97..8fd28c66 100644 --- a/libvips/iofuncs/streamou.c +++ b/libvips/iofuncs/streamou.c @@ -83,7 +83,7 @@ vips_streamou_write_real( VipsStreamo *streamo, bytes_written = 0; g_signal_emit( streamo, vips_streamou_signals[SIG_WRITE], 0, - data, length, &bytes_written ); + data, (gint64) length, &bytes_written ); VIPS_DEBUG_MSG( " %zd\n", bytes_written );