[vala] Fix printf format in GIRWriter
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix printf format in GIRWriter
- Date: Sun, 21 Mar 2010 09:50:54 +0000 (UTC)
commit 9c43769388e38ed5a4fb3c496890a122ac5781a1
Author: Jürg Billeter <j bitron ch>
Date: Sun Mar 21 10:37:38 2010 +0100
Fix printf format in GIRWriter
codegen/valagirwriter.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index fd90f85..33fd77e 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -951,7 +951,7 @@ public class Vala.GIRWriter : CodeVisitor {
return Markup.escape_text (lit.eval ());
}
} else if (literal is CharacterLiteral) {
- return "%lc".printf (((CharacterLiteral) literal).get_char ());
+ return "%c".printf ((char) ((CharacterLiteral) literal).get_char ());
} else if (literal is BooleanLiteral) {
return ((BooleanLiteral) literal).value ? "true" : "false";
} else if (literal is RealLiteral) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]