diff options
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index 273270a..b19bbeb 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -976,12 +976,12 @@ yylex (void) else { /* Built-in BOOLEAN type. This is sort of a hack. */ - if (strncmp (tokstart, "TRUE", 4) == 0) + if (startswith (tokstart, "TRUE")) { yylval.ulval = 1; return M2_TRUE; } - else if (strncmp (tokstart, "FALSE", 5) == 0) + else if (startswith (tokstart, "FALSE")) { yylval.ulval = 0; return M2_FALSE; |