Skip to content

Commit

Permalink
Fixed a silly bug when --ccomp is used
Browse files Browse the repository at this point in the history
Using correct suffix for constans.
  • Loading branch information
chenyang78 committed Jul 31, 2011
1 parent 9cb30e7 commit 01a3831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Constant.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 01a3831

Please sign in to comment.