[gcalctool/vala] Fix base conversion
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool/vala] Fix base conversion
- Date: Fri, 12 Oct 2012 20:23:49 +0000 (UTC)
commit af67e475068ede6fd90c979cb3b533c2c0ecca67
Author: Robert Ancell <robert ancell canonical com>
Date: Sat Oct 13 09:23:43 2012 +1300
Fix base conversion
src/math-buttons.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/math-buttons.vala b/src/math-buttons.vala
index e93d8b2..a00e108 100644
--- a/src/math-buttons.vala
+++ b/src/math-buttons.vala
@@ -174,18 +174,18 @@ public class MathButtons : Gtk.Box
var number_base = equation.number_base;
var label = "";
if (number_base != 8)
- label += "%llioâ".printf (bits);
+ label += "%lloâ".printf (bits);
if (number_base != 10)
{
if (label != "")
label += " = ";
- label += "%lliuââ".printf (bits);
+ label += "%lluââ".printf (bits);
}
if (number_base != 16)
{
if (label != "")
label += " = ";
- label += "%lliXââ".printf (bits);
+ label += "%llXââ".printf (bits);
}
base_label.set_text (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]