From: Matthias Fuchs Date: Thu, 27 Dec 2007 16:13:05 +0000 (+0100) Subject: Fix MSB check in Xilinx Spartan slave serial mode X-Git-Tag: v1.3.2-rc1~102^2~49^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=437fc7327f0611f82937858f2d80e4cd61b40984;p=u-boot Fix MSB check in Xilinx Spartan slave serial mode Signed-off-by: Matthias Fuchs --- diff --git a/common/spartan2.c b/common/spartan2.c index ef107bcbc8..2f1ea2c099 100644 --- a/common/spartan2.c +++ b/common/spartan2.c @@ -441,7 +441,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize) int ret_val = FPGA_FAIL; /* assume the worst */ Xilinx_Spartan2_Slave_Serial_fns *fn = desc->iface_fns; int i; - char val; + unsigned char val; PRINTF ("%s: start with interface functions @ 0x%p\n", __FUNCTION__, fn); diff --git a/common/spartan3.c b/common/spartan3.c index 56a172e0be..d329e70cf7 100644 --- a/common/spartan3.c +++ b/common/spartan3.c @@ -446,7 +446,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize) int ret_val = FPGA_FAIL; /* assume the worst */ Xilinx_Spartan3_Slave_Serial_fns *fn = desc->iface_fns; int i; - char val; + unsigned char val; PRINTF ("%s: start with interface functions @ 0x%p\n", __FUNCTION__, fn);