Skip to content

Commit

Permalink
Add casts
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Nov 14, 2013
1 parent 31e826d commit 0e04187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctfeexpr.c
Expand Up @@ -496,8 +496,8 @@ StringExp *createBlockDuplicatedStringLiteral(Loc loc, Type *type,
{
switch (sz)
{
case 1: s[elemi] = value; break;
case 2: ((unsigned short *)s)[elemi] = value; break;
case 1: s[elemi] = (utf8_t)value; break;
case 2: ((unsigned short *)s)[elemi] = (unsigned short)value; break;
case 4: ((unsigned *)s)[elemi] = value; break;
default: assert(0);
}
Expand Down

0 comments on commit 0e04187

Please sign in to comment.