Re: GLib and 64-bit Windows



Sure. Please excuse the following formatting...

gbookmarkfile.c(1838) : warning C4267: 'function' : conversion from 'size_t' to 'gulong', possible loss of data all_data_dirs = g_new0 (gchar *, g_strv_length ((gchar **)system_data_dirs) + 2);

gfileutils.c(565) : warning C4267: 'function' : conversion from 'size_t' to 'gulong', possible loss of data
tmp = g_try_realloc (str, total_allocated);

gkeyfile.c(3330) : warning C4267: 'function' : conversion from 'size_t' to 'gulong', possible loss of data
string_value = g_new0 (gchar, strlen (value) + 1);

goption.c(994) : warning C4267: 'function' : conversion from 'size_t' to 'gulong', possible loss of data change->allocated.array.data = g_renew (gchar *, change->allocated.array.data, change->allocated.array.len + 2);

And more. It sure looks like most of them have to do with the allocation functions, which all seem to take ulongs as opposed to size_t.

Owen Taylor wrote:
Can you give some examples?
		




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]