* src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false while loop
[fw/sdcc] / packihx / packihx.c
index 6dbb180b7833dc4a5b0bbffd41857aacf69e1693..779966a5190acc7f0fef803aafd771baaf94717e 100644 (file)
@@ -14,7 +14,7 @@
 #include <ctype.h>
 #include <assert.h>
 
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
 
 typedef unsigned char Uint8 ;
 typedef unsigned Uint16 ;
@@ -46,7 +46,7 @@ int outlineno = 0;
 /* Convert hex digit to numeric value 0 - 15; assumes input is a 
  * valid digit (i.e. passes isxdigit()).
  */
-static Uint8 hexDigit(const char c)
+static Uint8 hexDigit(const unsigned char c)
 {
     if (isdigit(c))
     {