diff mbox

[15/36] sparse: fix constant is so big it's long in hw/nx-rng.c

Message ID 1447129110-21600-16-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Nov. 10, 2015, 4:18 a.m. UTC
hw/nx-rng.c:73:29: warning: constant 0x400000000 is so big it is long

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 hw/nx-rng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/nx-rng.c b/hw/nx-rng.c
index 063848d97c35..f652bb5d91c2 100644
--- a/hw/nx-rng.c
+++ b/hw/nx-rng.c
@@ -70,7 +70,7 @@  void nx_create_rng_node(struct dt_node *node)
 	}
 	rng_len = (u64[]){  0x1000,         /* 4K */
 			    0x10000,        /* 64K */
-			    0x400000000,    /* 16G*/
+			    0x400000000UL,    /* 16G*/
 			    0x100000,       /* 1M */
 			    0x1000000       /* 16M */} [len];