[gcalctool] Use system's format string when printing base conversions



commit b199b256620857386bd21381a0b51dc47f33893b
Author: Robin Sonefors <ozamosi flukkost nu>
Date:   Sat Jan 15 17:01:27 2011 +0100

    Use system's format string when printing base conversions
    
    Should close bug #639383

 src/math-buttons.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/math-buttons.c b/src/math-buttons.c
index 57e859e..69b215f 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -435,19 +435,19 @@ update_bit_panel(MathButtons *buttons)
     if (base != 8) {
         if (label->len != 0)
             g_string_append(label, " = ");
-        g_string_append_printf(label, "%lo", bits);
+        g_string_append_printf(label, "%" G_GINT64_MODIFIER "o", bits);
         g_string_append(label, "â??");
     }
     if (base != 10) {
         if (label->len != 0)
             g_string_append(label, " = ");
-        g_string_append_printf(label, "%lu", bits);
+        g_string_append_printf(label, "%" G_GINT64_MODIFIER "u", bits);
         g_string_append(label, "â??â??");
     }
     if (base != 16) {
         if (label->len != 0)
             g_string_append(label, " = ");
-        g_string_append_printf(label, "%lX", bits);
+        g_string_append_printf(label, "%" G_GINT64_MODIFIER "X", bits);
         g_string_append(label, "â??â??");
     }
 



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