This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit 727eb41
Sven Verdoolaege
src/lang/lexer.cc: compare const char* strings using strcmp
There is no guarantee that the compiler maps identical strings
to the same memory location.1 parent 2931669 commit 727eb41
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments