Fix formatting

This commit is contained in:
bʰedoh₂ swé 2024-06-17 21:27:12 +05:00
parent d9b8904f88
commit 9a8feadff7

View File

@ -188,12 +188,12 @@ void execute(Stack *stack, Stack *originstack, char *modname)
if (!strcmp(NAME, "string"))
{
for (char *i = ARG; *i != '\0'; i++)
stack_push(stack, *i);
stack_push(stack, strlen(ARG));
continue;
for (char *i = ARG; *i != '\0'; i++)
stack_push(stack, *i);
stack_push(stack, strlen(ARG));
continue;
}
// Math
@ -484,11 +484,11 @@ void execute(Stack *stack, Stack *originstack, char *modname)
if (!strcmp(NAME, "call"))
{
unsigned short len = stack_pop(stack);
char *string = calloc(len, sizeof(char));
for (int i = len - 1; i != -1; i--)
string[i] = stack_pop(stack);
unsigned short len = stack_pop(stack);
char *string = calloc(len, sizeof(char));
for (int i = len - 1; i != -1; i--)
string[i] = stack_pop(stack);
if (!strcmp(string, modname))
{
@ -517,7 +517,7 @@ void execute(Stack *stack, Stack *originstack, char *modname)
stack_push(stack, tempstack->memory[i]);
free(tempstack);
free(string);
free(string);
continue;
}