Skip to content

Commit

Permalink
Correct fix to the U suffix when --ccomp is passed
Browse files Browse the repository at this point in the history
I don't know what I was thinking about yesterday...
  • Loading branch information
chenyang78 committed Aug 1, 2011
1 parent 1b4f037 commit 1e9da87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Constant.cpp
Expand Up @@ -294,10 +294,10 @@ GenerateRandomConstant(const Type* type)
break;
default: oss << num; break;
}
if (CGOptions::ccomp())
v = oss.str();
else
if (CGOptions::ccomp())
v = oss.str() + (type->is_signed() ? "" : "U");
else
v = oss.str() + (type->is_signed() ? "L" : "UL");
} else {
switch (st) {
case eVoid: v = "/* void */"; break;
Expand Down

0 comments on commit 1e9da87

Please sign in to comment.