summaryrefslogtreecommitdiffstats
path: root/02_exercise/prompt_utils.c
diff options
context:
space:
mode:
Diffstat (limited to '02_exercise/prompt_utils.c')
-rw-r--r--02_exercise/prompt_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/02_exercise/prompt_utils.c b/02_exercise/prompt_utils.c
index d43a6b6..238f47c 100644
--- a/02_exercise/prompt_utils.c
+++ b/02_exercise/prompt_utils.c
@@ -84,7 +84,7 @@ size_t *get_seperator_indeces(char const *const text, char seperator) {
return NULL;
}
while ((current = strchr(current, seperator)) != NULL) {
- arrayPush(indeces) = current - text;
+ arrayPush(indeces) = (size_t) (current - text);
++current;
}
arrayPush(indeces) = strlen(text);