bmx-ng / maxgui.mod

BlitzMax MaxGUI modules port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdk_pixbuf_get_type() should return Size_T

woollybah opened this issue · comments

It appears that a GType is generally of type Size_T (maybe).

#if     GLIB_SIZEOF_SIZE_T != GLIB_SIZEOF_LONG || !defined __cplusplus
typedef gsize                           GType;
#else   /* for historic reasons, C++ links against gulong GTypes */
typedef gulong                          GType;
typedef unsigned long gsize;

An unsigned integer type of the result of the sizeof operator, corresponding to the size_t type defined in C99. This type is wide enough to hold the numeric value of a pointer, so it is usually 32bit wide on a 32bit platform and 64bit wide on a 64bit platform.

I had an issue with one 64-bit Ubuntu VM crashing MaxIDE on startup - changing this to Size_T resolved that problem... but needs testing with my other instances, which seem to work with the result defined as Int.

Fixed