Skip to content

Commit 96018d0

Browse files
committed
Change type from char* to const char*
This is to gets rid of the explicit type conversation every iteration of the loop.
1 parent 6cc620d commit 96018d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ void laco_kill(LacoState* laco, int status, const char* message) {
2828

2929
bool laco_is_match(const char** matches, const char* test_string) {
3030
int i;
31-
char* match;
31+
const char* match;
3232

33-
for(i = 0; (match = (char*) matches[i]); i++) {
33+
for(i = 0; (match = matches[i]); i++) {
3434
if(strcmp(test_string, match) == 0) {
3535
return true;
3636
}

0 commit comments

Comments
 (0)