remove useless flag in Makefile, patch one test

This commit is contained in:
Xamora 2026-09-20 06:23:23 +02:00
parent 2c658cc4ee
commit 467d7e2c0b
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
CC := gcc
AS := nasm
ASFLAGS := -g -f elf64 -I src/
CFLAGS := -g -Wall -Wextra -Wno-override-init -std=c2x -fPIC -fPIE
CFLAGS := -g -Wall -Wextra -std=c2x
MAIN := $(wildcard *.c)
SRC := $(wildcard src/*.s)
OBJ_DIR := build

4
main.c
View file

@ -181,7 +181,7 @@ test_calloc() {
char *normal = ft_calloc(10, 1); // return ""
printf("normal: %s_%p\n", normal, normal);
for (int i = 0; i <= 10; i++)
for (int i = 0; i < 10; i++)
printf("'%b' ", normal[i]);
printf("\n");
@ -208,7 +208,7 @@ test_calloc() {
char *normal = ft_calloc(10, 1);
printf("normal: %s_%p\n", normal, normal);
for (int i = 0; i <= 10; i++)
for (int i = 0; i < 10; i++)
printf("'%b' ", normal[i]);
printf("\n");