Cast to gchar* to fix a compilation warning

This commit is contained in:
Javier Jardón 2009-10-24 17:09:01 +02:00
parent 04d7d81056
commit e21355495a

View File

@ -242,7 +242,7 @@ pnm_read_next_value (PnmIOBuffer *inbuf, gint max_length, guint *value, GError *
return PNM_SUSPEND;
/* get the value */
result = strtol (buf, &endptr, 10);
result = strtol ((gchar *)buf, &endptr, 10);
if (*endptr != '\0' || result < 0 || result > G_MAXUINT) {
g_set_error_literal (error,
GDK_PIXBUF_ERROR,