From aebbaecae7add3191d86f35521646d7ba000d7c5 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Fri, 6 Oct 2023 11:14:35 -0500 Subject: [PATCH] Use size_t type for Gosu_Image_create_from_blob size argument --- src/gosu/image.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gosu/image.cr b/src/gosu/image.cr index a3cf3df..e21780d 100644 --- a/src/gosu/image.cr +++ b/src/gosu/image.cr @@ -7,7 +7,7 @@ module Gosu fun create_image_from_markup = Gosu_Image_create_from_markup(text : UInt8*, font : UInt8*, line_height : Float64, width : Int32, spacing : Float64, alignment_flags : UInt32, font_flags : UInt32, image_flags : UInt32) : UInt8* - fun create_image_from_blob = Gosu_Image_create_from_blob(blob : UInt8*, size : UInt32, width : Int32, height : Int32, + fun create_image_from_blob = Gosu_Image_create_from_blob(blob : UInt8*, size : LibC::SizeT, width : Int32, height : Int32, image_flags : UInt32) : UInt8* fun load_tiles = Gosu_Image_create_from_tiles(filename : UInt8*, width : Int32, height : Int32, function : (Void*, UInt8* ->), data : Void*, image_flags : UInt32)