From be83b87463c0055fb9d2a2fdcf20e775c841bea6 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sun, 7 Apr 2013 22:26:19 +0200 Subject: [PATCH] Allow for warning-free build of cc65 with MS VC on warning level 3. --- src/cc65/coptstore.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cc65/coptstore.c b/src/cc65/coptstore.c index d5dad45e4..03d8ab32f 100644 --- a/src/cc65/coptstore.c +++ b/src/cc65/coptstore.c @@ -133,9 +133,9 @@ unsigned OptStore2 (CodeSeg* S) !RegAXUsed (S, I+1)) { /* Get the register values */ - unsigned char A = RI->In.RegA; - unsigned char X = RI->In.RegX; - unsigned char Y = RI->In.RegY; + unsigned char A = (unsigned char) RI->In.RegA; + unsigned char X = (unsigned char) RI->In.RegX; + unsigned char Y = (unsigned char) RI->In.RegY; /* Setup other variables */ CodeEntry* N; @@ -205,11 +205,11 @@ unsigned OptStore3 (CodeSeg* S) !RegEAXUsed (S, I+1)) { /* Get the register values */ - unsigned char A = RI->In.RegA; - unsigned char X = RI->In.RegX; - unsigned char Y = RI->In.RegY; - unsigned char L = RI->In.SRegLo; - unsigned char H = RI->In.SRegHi; + unsigned char A = (unsigned char) RI->In.RegA; + unsigned char X = (unsigned char) RI->In.RegX; + unsigned char Y = (unsigned char) RI->In.RegY; + unsigned char L = (unsigned char) RI->In.SRegLo; + unsigned char H = (unsigned char) RI->In.SRegHi; /* Setup other variables */ unsigned Done = 0; -- 2.39.5