Skip to content

Commit cb2422f

Browse files
U-UC\harvey1U-UC\harvey1
authored andcommitted
removed niceness
1 parent 16bc216 commit cb2422f

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/as4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ int main(int argc, char **argv)
407407
if((bits % 8) != 0)
408408
{
409409
/* So we add a single NOP. */
410-
addinst(outbuf, NOP, NOADDR, &bits, &bytes);
410+
addinst(outbuf, NOP, EOFADDR, &bits, &bytes);
411411
}
412412
/* If we get here, we've read the entire input file and we don't need it anymore. */
413413
fclose(input);
@@ -775,7 +775,7 @@ unsigned short int findlabel(label **unknownlabels, label **labels, const char *
775775
/* Remove any possible whitespace */
776776
for(i = 0; i < strlen(tempstr); i++)
777777
{
778-
if(isspace(tempstr[i]))
778+
if(isspace((unsigned char)tempstr[i]))
779779
{
780780
tempstr[i] = '\0';
781781
break;

src/as4.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@
2929
/* For instructions HLT, NOP, and CXA MEMLOC is ignored and NOADDR below is used */
3030

3131
/* These are the default memory locations for memory locations when nothing is specified */
32-
#ifdef NICEMISTAKES
33-
#define NOADDR 0x4444
34-
#else
3532
#define NOADDR 0x0000
36-
#endif
33+
#define EOFADDR 0x4444
3734
#define UNKNOWNADDR 0xFFFF
3835

3936
/* The singular global variable - what line of the assembly file we are on. Helps with error messages */

0 commit comments

Comments
 (0)