projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
[fw/sdcc]
/
src
/
SDCCast.c
diff --git
a/src/SDCCast.c
b/src/SDCCast.c
index 8e20910cf1c505dae56081cc9e485c210bbe0a52..7f34fdb5b37b8319ce6f4d8b83e9c6a5dff2a7bc 100644
(file)
--- a/
src/SDCCast.c
+++ b/
src/SDCCast.c
@@
-2059,7
+2059,7
@@
addCast (ast *tree, RESULT_TYPE resultType, bool upcast)
upCasted = TRUE;
break;
case RESULT_TYPE_CHAR:
- if (
getSize (tree->etype) <= 1
)
+ if (
IS_CHAR (tree->etype)
)
return tree;
newLink = newCharLink();
break;