[pacman-dev] [PATCH] Fix compile error with clang-2.8

Allan McRae allan at archlinux.org
Wed Oct 6 21:40:10 EDT 2010


Signed-off-by: Allan McRae <allan at archlinux.org>
---

wint_t appears to be the same as size_t or unsigned long. It probably best if
someone checks that is the right format specifier on x86_64 too...

 src/pacman/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pacman/util.c b/src/pacman/util.c
index 5b4b2e8..8dc1571 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -261,7 +261,7 @@ void indentprint(const char *str, int indent)
 			}
 			continue;
 		}
-		printf("%lc", (wint_t)*p);
+		printf("%u", (wint_t)*p);
 		cidx += wcwidth(*p);
 		p++;
 	}
-- 
1.7.3.1




More information about the pacman-dev mailing list