projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d978b
)
Fix r21499: The types must be unsigned, not signed.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 4 Sep 2008 12:31:49 +0000
(12:31 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 4 Sep 2008 12:31:49 +0000
(12:31 +0000)
[r21701]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
6ccb424
..
b4465da
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-7260,9
+7260,9
@@
static type_t *semantic_arithmetic(type_t *type_left, type_t *type_right)
return s_type;
switch (s_rank) {
- case ATOMIC_TYPE_INT: return type_int;
- case ATOMIC_TYPE_LONG: return type_long;
- case ATOMIC_TYPE_LONGLONG: return type_long_long;
+ case ATOMIC_TYPE_INT: return type_
unsigned_
int;
+ case ATOMIC_TYPE_LONG: return type_
unsigned_
long;
+ case ATOMIC_TYPE_LONGLONG: return type_
unsigned_
long_long;
default: panic("invalid atomic type");
}