From: jtvolpe Date: Fri, 20 Apr 2001 01:45:38 +0000 (+0000) Subject: Cleaned up MSVC specific stuff and unary minus on unsigned variable X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d4bd71dcd00ff5e1a12bc6c56959588b58df0c5c;p=fw%2Fsdcc Cleaned up MSVC specific stuff and unary minus on unsigned variable git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@742 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/lks19.c b/as/mcs51/lks19.c index b222415d..26d8892e 100644 --- a/as/mcs51/lks19.c +++ b/as/mcs51/lks19.c @@ -11,9 +11,6 @@ #include #include -//#if !defined(_MSC_VER) -//#include -//#endif #include "aslink.h" /*)Module lks19.c @@ -118,7 +115,7 @@ s19(i) chksum += rtval[i]; } } - fprintf(ofp, "%02X\n", (-chksum-1) & 0xff); + fprintf(ofp, "%02X\n", (0-chksum-1) & 0xff); } else { fprintf(ofp, "S9030000FC\n"); }