[gjs] byteArray: Fix incorrect use of %u for gsize format



commit 2e150d74f9b214d8f79647e31ad79373a4615ab2
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 16 16:52:33 2010 -0400

    byteArray: Fix incorrect use of %u for gsize format

 gjs/byteArray.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index 3f7d9ba..13ef2f3 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -148,7 +148,7 @@ gjs_value_to_byte(JSContext         *context,
 
     if (v >= 256) {
         gjs_throw(context,
-                  "Value %u is not a valid byte; must be in range [0,255]",
+                  "Value %" G_GSIZE_FORMAT " is not a valid byte; must be in range [0,255]",
                   v);
         return JS_FALSE;
     }
@@ -168,7 +168,7 @@ byte_array_get_index(JSContext         *context,
 
     if (idx >= priv->array->len) {
         gjs_throw(context,
-                  "Index %u is out of range for ByteArray length %u",
+                  "Index %" G_GSIZE_FORMAT " is out of range for ByteArray length %u",
                   idx,
                   priv->array->len);
         return JS_FALSE;



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