]> granicus.if.org Git - yasm/commitdiff
toascii -> &= 0x7F for ANSI C compatibility.
authorPeter Johnson <peter@tortall.net>
Wed, 13 Jun 2001 05:53:25 +0000 (05:53 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 13 Jun 2001 05:53:25 +0000 (05:53 -0000)
svn path=/trunk/yasm/; revision=52

libyasm/errwarn.c
src/errwarn.c

index 2c4983eeba4710d820203026f4bd0520d8b9f88c..b2db90484374862708e17c194f56355508e19b58 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: errwarn.c,v 1.6 2001/06/13 05:43:59 mu Exp $
+/* $Id: errwarn.c,v 1.7 2001/06/13 05:53:25 peter Exp $
  * Error and warning reporting and related functions.
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -72,7 +72,7 @@ char *conv_unprint(char ch)
     if(!isascii(ch) && !isprint(ch)) {
        unprint[pos++] = 'M';
        unprint[pos++] = '-';
-       ch = toascii(ch);
+       ch &= 0x7F; /* toascii(ch) */
     }
     if(iscntrl(ch)) {
        unprint[pos++] = '^';
index 2c4983eeba4710d820203026f4bd0520d8b9f88c..b2db90484374862708e17c194f56355508e19b58 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: errwarn.c,v 1.6 2001/06/13 05:43:59 mu Exp $
+/* $Id: errwarn.c,v 1.7 2001/06/13 05:53:25 peter Exp $
  * Error and warning reporting and related functions.
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -72,7 +72,7 @@ char *conv_unprint(char ch)
     if(!isascii(ch) && !isprint(ch)) {
        unprint[pos++] = 'M';
        unprint[pos++] = '-';
-       ch = toascii(ch);
+       ch &= 0x7F; /* toascii(ch) */
     }
     if(iscntrl(ch)) {
        unprint[pos++] = '^';