eog r4641 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4641 - in trunk: . src
- Date: Fri, 4 Jul 2008 15:58:51 +0000 (UTC)
Author: friemann
Date: Fri Jul 4 15:58:51 2008
New Revision: 4641
URL: http://svn.gnome.org/viewvc/eog?rev=4641&view=rev
Log:
2008-07-04 Felix Riemann <friemann svn gnome org>
* src/eog-metadata-reader-png.c: (eog_metadata_reader_png_consume):
Fix warnings about wrong format specifiers on 64bit machines.
Modified:
trunk/ChangeLog
trunk/src/eog-metadata-reader-png.c
Modified: trunk/src/eog-metadata-reader-png.c
==============================================================================
--- trunk/src/eog-metadata-reader-png.c (original)
+++ trunk/src/eog-metadata-reader-png.c Fri Jul 4 15:58:51 2008
@@ -301,7 +301,9 @@
priv->size = 4;
case EMR_SKIP_BYTES:
/* Skip chunk and start reading the size of the next one */
- eog_debug_message (DEBUG_IMAGE_DATA, "Skip bytes: %i", priv->size);
+ eog_debug_message (DEBUG_IMAGE_DATA,
+ "Skip bytes: %" G_GSIZE_FORMAT,
+ priv->size);
if (i + priv->size < len) {
i = i + priv->size - 1; /* the for-loop consumes the other byte */
@@ -348,8 +350,8 @@
/* Extract an iTXt chunk possibly containing
* an XMP packet */
eog_debug_message (DEBUG_IMAGE_DATA,
- "Read XMP Chunk - size: %u",
- priv->size);
+ "Read XMP Chunk - size: %"
+ G_GSIZE_FORMAT, priv->size);
if (priv->xmp_chunk == NULL) {
priv->xmp_chunk = g_new0 (guchar, priv->size);
@@ -380,8 +382,8 @@
/* Extract an iCCP chunk containing a
* deflated ICC profile. */
eog_debug_message (DEBUG_IMAGE_DATA,
- "Read ICC Chunk - size: %u",
- priv->size);
+ "Read ICC Chunk - size: %"
+ G_GSIZE_FORMAT, priv->size);
if (priv->icc_chunk == NULL) {
priv->icc_chunk = g_new0 (guchar, priv->size);
@@ -421,8 +423,8 @@
/* Extract the cHRM chunk. Contains the coordinates of
* the image's whitepoint and primary chromacities. */
eog_debug_message (DEBUG_IMAGE_DATA,
- "Read cHRM Chunk - size: %u",
- priv->size);
+ "Read cHRM Chunk - size: %"
+ G_GSIZE_FORMAT, priv->size);
if (priv->cHRM_chunk == NULL) {
priv->cHRM_chunk = g_new0 (guchar, priv->size);
@@ -442,8 +444,8 @@
/* Extract the gAMA chunk containing the
* image's gamma value */
eog_debug_message (DEBUG_IMAGE_DATA,
- "Read gAMA-Chunk - size: %u",
- priv->size);
+ "Read gAMA-Chunk - size: %"
+ G_GSIZE_FORMAT, priv->size);
if (priv->gAMA_chunk == NULL) {
priv->gAMA_chunk = g_new0 (guchar, priv->size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]