From c1da323144ad0a80d649912973c0bd28cd2b8da6 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 1 Dec 2016 19:15:55 -0800 Subject: [PATCH] Fix issue #6: build failure on gcc 6 Change-Id: If890a6d62fdd55befb9057f83726f60721ac8078 --- src/target/riscv/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index d4af3deb9..4ce732b6b 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -132,7 +132,7 @@ typedef enum slot { #define DMCONTROL_FULLRESET 1 #define DMINFO 0x11 -#define DMINFO_ABUSSIZE (0x7f<<25) +#define DMINFO_ABUSSIZE (0x7fU<<25) #define DMINFO_SERIALCOUNT (0xf<<21) #define DMINFO_ACCESS128 (1<<20) #define DMINFO_ACCESS64 (1<<19)