RSS/Atom feed Twitter
Site is read-only, email is disabled

Fixed a one char typo in libs/rgbe/rgbe.c

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Fixed a one char typo in libs/rgbe/rgbe.c Patrick Horgan 14 Jan 08:57
Patrick Horgan
2011-01-14 08:57:34 UTC (about 14 years ago)

Fixed a one char typo in libs/rgbe/rgbe.c

https://bugzilla.gnome.org/show_bug.cgi?id=639501

I was curious about a warning: rgbe.c: In function ‘rgbe_header_init’: rgbe.c:149:25: warning: operation on ‘header->x_axis.size’ may be undefined [-Wsequence-point]

The line (with preceding line) was: header->x_axis.orient = header->y_axis.orient = ORIENT_UNKNOWN; header->x_axis.size = header->x_axis.size = 0;

It's obviously a sequence point issue, but just as obviously it should have been:

header->x_axis.size = header->y_axis.size = 0;

Patch attached to the bug report.