]> pd.if.org Git - pdclib/commitdiff
Corrected _PDCLIB_CHAR_SIGNED handling.
authorMartin Baute <solar@rootdirectory.de>
Mon, 12 Dec 2016 08:15:16 +0000 (09:15 +0100)
committerMartin Baute <solar@rootdirectory.de>
Mon, 12 Dec 2016 08:15:16 +0000 (09:15 +0100)
internals/_PDCLIB_int.h
platform/example/internals/_PDCLIB_config.h

index 0614deba1f32aaa7f350b958fe81badcc86f2c09..848f66ad6781f281b77ced7a6ed26a225c4ed112 100644 (file)
@@ -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
index fe23663244a3c29ebace87258ed06a69e53452b1..1e34cc024527c5200dab8bb92e0dbe0df406273e 100755 (executable)
@@ -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.      */