From 94f99638cc71992fa66103812984b0ce1b44123e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sat, 24 Feb 2018 20:32:20 +0100 Subject: [PATCH] fix cast --- tos/fpga_test/sources/fpga_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tos/fpga_test/sources/fpga_test.c b/tos/fpga_test/sources/fpga_test.c index 55805bb..bda76f9 100644 --- a/tos/fpga_test/sources/fpga_test.c +++ b/tos/fpga_test/sources/fpga_test.c @@ -20,7 +20,7 @@ #define SYSCLK 132000 -static long bas_start = 0xe0000000; +static unsigned long bas_start = 0xe0000000; static volatile uint16_t * const FB_CS1 = (volatile uint16_t * const) 0xfff00000; /* "classic" ATARI I/O registers */ static volatile uint32_t * const FB_CS2 = (volatile uint32_t * const) 0xf0000000; /* FireBee 32 bit I/O registers */ @@ -477,7 +477,7 @@ int main(int argc, char *argv[]) /* * seems to be a valid address */ - bas_start = (long) addr; + bas_start = (unsigned long) addr; printf("BaS start address set to %p\r\n", (void *) bas_start); }