projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e1bce
)
Fixed clang warning.
author
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Thu, 30 Aug 2012 08:28:57 +0000
(10:28 +0200)
committer
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Thu, 30 Aug 2012 08:28:57 +0000
(10:28 +0200)
type.c
patch
|
blob
|
history
diff --git
a/type.c
b/type.c
index
b7bf726
..
0c697ef
100644
(file)
--- a/
type.c
+++ b/
type.c
@@
-239,15
+239,15
@@
void print_type_qualifiers(type_qualifiers_t const qualifiers, QualifierSeparato
{
size_t sep = q & QUAL_SEP_START ? 0 : 1;
if (qualifiers & TYPE_QUALIFIER_CONST) {
- print_string(
" const" + sep
);
+ print_string(
&" const"[sep]
);
sep = 0;
}
if (qualifiers & TYPE_QUALIFIER_VOLATILE) {
- print_string(
" volatile" + sep
);
+ print_string(
&" volatile"[sep]
);
sep = 0;
}
if (qualifiers & TYPE_QUALIFIER_RESTRICT) {
- print_string(
" restrict" + sep
);
+ print_string(
&" restrict"[sep]
);
sep = 0;
}
if (sep == 0 && q & QUAL_SEP_END)