Cleaned up MSVC specific stuff and unary minus on unsigned variable
authorjtvolpe <jtvolpe@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 20 Apr 2001 01:45:38 +0000 (01:45 +0000)
committerjtvolpe <jtvolpe@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 20 Apr 2001 01:45:38 +0000 (01:45 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@742 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/mcs51/lks19.c

index b222415d1cabc8133369fd2403c91d8870859d3f..26d8892e850de128e3d1d929b5c66fab5db3c7de 100644 (file)
@@ -11,9 +11,6 @@
 
 #include <stdio.h>
 #include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#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");
        }