From: Sebastien Bourdeauducq Date: Tue, 7 Feb 2012 11:06:49 +0000 (+0100) Subject: software: fix size_t and ptrdiff_t X-Git-Tag: 24jan2021_ls180~3254 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a40b0ea17572af04cf65ac8417b6f7b92f11869d;p=litex.git software: fix size_t and ptrdiff_t --- diff --git a/software/include/base/stdlib.h b/software/include/base/stdlib.h index ed22bdd9..685cc5a6 100644 --- a/software/include/base/stdlib.h +++ b/software/include/base/stdlib.h @@ -27,8 +27,8 @@ #define PRINTF_SPECIAL 32 /* 0x */ #define PRINTF_LARGE 64 /* use 'ABCDEF' instead of 'abcdef' */ -typedef int size_t; -typedef int ptrdiff_t; +typedef unsigned long size_t; +typedef long ptrdiff_t; #define NULL ((void *)0)