From: Martin Baute Date: Mon, 12 Dec 2016 08:15:16 +0000 (+0100) Subject: Corrected _PDCLIB_CHAR_SIGNED handling. X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=41deaf7c54dafcea0c9afbfad7d7ab948504ca1e Corrected _PDCLIB_CHAR_SIGNED handling. --- diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 0614deb..848f66a 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -33,7 +33,7 @@ #define _PDCLIB_UCHAR_MAX 0xff #define _PDCLIB_SCHAR_MIN (-0x7f - 1) #define _PDCLIB_SCHAR_MAX 0x7f -#ifdef _PDCLIB_CHAR_SIGNED +#if _PDCLIB_CHAR_SIGNED == 1 #define _PDCLIB_CHAR_MIN _PDCLIB_SCHAR_MIN #define _PDCLIB_CHAR_MAX _PDCLIB_SCHAR_MAX #else diff --git a/platform/example/internals/_PDCLIB_config.h b/platform/example/internals/_PDCLIB_config.h index fe23663..1e34cc0 100755 --- a/platform/example/internals/_PDCLIB_config.h +++ b/platform/example/internals/_PDCLIB_config.h @@ -45,7 +45,7 @@ /* first, before going to lengths about it. */ /* -------------------------------------------------------------------------- */ -/* Comment out (or delete) the line below if your 'char' type is unsigned. */ +/* Set to 0 if your 'char' type is unsigned. */ #define _PDCLIB_CHAR_SIGNED 1 /* Width of the integer types short, int, long, and long long, in bytes. */