From 3e8ba2312d9033cd55196d217313a7bd105cf1e0 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 22 Sep 2015 15:52:01 +0200 Subject: [PATCH] [liba] Proper signed-ness of intxx_t --- liba/Makefile | 1 + liba/include/stdint.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/liba/Makefile b/liba/Makefile index 7893b8a3d..d273fec1d 100644 --- a/liba/Makefile +++ b/liba/Makefile @@ -3,3 +3,4 @@ SFLAGS += -Iliba/include liba/src/external/sqlite/mem5.o: CFLAGS += -w objs += $(addprefix liba/src/, assert.o errno.o malloc.o memcpy.o memset.o strlen.o external/sqlite/mem5.o) +tests += $(addprefix liba/test/, stdint.c) diff --git a/liba/include/stdint.h b/liba/include/stdint.h index 73c095358..5080b92b5 100644 --- a/liba/include/stdint.h +++ b/liba/include/stdint.h @@ -6,8 +6,8 @@ typedef unsigned int uint16_t; typedef unsigned long uint32_t; typedef unsigned long long uint64_t; -typedef char int8_t; -typedef long int32_t; -typedef long long int64_t; +typedef signed char int8_t; +typedef signed long int32_t; +typedef signed long long int64_t; #endif