Skip to content

Commit f223c37

Browse files
committed
Change use of laco_split_by to characters
1 parent 3a3a126 commit f223c37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/debugger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void laco_print_debug_info(LacoState* laco, const char* function_name) {
1717
lua_Debug debug_info = {0};
1818

1919
char* name = strdup(function_name);
20-
char** namespaces = laco_split_by(".", name, 0);
20+
char** namespaces = laco_split_by('.', name, 0);
2121

2222
/* Walk down the namespace if there is something to go down */
2323
for(i = 0; (namespace = namespaces[i]); i++) {

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ char** laco_split_by(const char split_with, char* string,
4949

5050
/* Macro for splitting with spaces */
5151
#define laco_line_to_words(line) \
52-
laco_split_by(" ", line, 1)
52+
laco_split_by(' ', line, 1)
5353

5454
#endif /* LACO_UTIL_H */

0 commit comments

Comments
 (0)