diff options
Diffstat (limited to 'src/defargs.l')
-rw-r--r-- | src/defargs.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/defargs.l b/src/defargs.l index 121b21b..e96664a 100644 --- a/src/defargs.l +++ b/src/defargs.l @@ -437,8 +437,8 @@ CPPC "/\/" // and need to correct it to avoid seeing a nameless parameter // "struct A" as a parameter with type "struct" and name "A". int sv=0; - if (a.type.left(6)=="const ") sv=6; - else if (a.type.left(9)=="volatile ") sv=9; + if (a.type.startsWith("const ")) sv=6; + else if (a.type.startsWith("volatile ")) sv=9; if (a.type.mid(sv)=="struct" || a.type.mid(sv)=="union" || |