From 01a3831a9be58de0da76960a490ae87f96b521d6 Mon Sep 17 00:00:00 2001 From: Yang Chen Date: Sun, 31 Jul 2011 15:28:54 -0600 Subject: [PATCH] Fixed a silly bug when --ccomp is used Using correct suffix for constans. --- src/Constant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Constant.cpp b/src/Constant.cpp index 44c6c14b0..9e1a224ec 100644 --- a/src/Constant.cpp +++ b/src/Constant.cpp @@ -297,7 +297,7 @@ GenerateRandomConstant(const Type* type) if (CGOptions::ccomp()) v = oss.str(); else - v = oss.str() + (type->is_signed() ? "L" : "U"); + v = oss.str() + (type->is_signed() ? "" : "U"); } else { switch (st) { case eVoid: v = "/* void */"; break;