You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when casting in both side of the = at the assignement is considered as multiple instructions
Erroneous code
#include"ft_utils.h"void*ft_realloc(void*mem, intsize)
{
void*new_mem;
inti;
i=0;
new_mem=malloc(size);
if (!new_mem)
return (0);
if (mem)
while (i<size)
{
((char*)new_mem)[i] = ((char*)mem)[i]; // <-- Herei++;
}
free(mem);
return (new_mem);
}
Additional infos
version : norminette 3.3.55
Additional context
ft_realloc.c: Error!
Error: MULT_IN_SINGLE_INSTR (line: 26, col: 1): Multiple instructions in single line control structure
The text was updated successfully, but these errors were encountered:
MoulatiMehdi
changed the title
Multiple Instruction when casting and assignment
Multiple Instruction when casting in both side at the assignment
Sep 2, 2024
Describe the bug
when casting in both side of the
=
at the assignement is considered as multiple instructionsErroneous code
Additional infos
version : norminette 3.3.55
Additional context
The text was updated successfully, but these errors were encountered: