From beb3cb5cc54c735582a7de8983bb8fc04d59dd53 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 15 Jul 2015 02:22:11 +0200 Subject: [PATCH] Use UINT32_C --- libretro-db/rmsgpack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-db/rmsgpack.c b/libretro-db/rmsgpack.c index 0837472a52..fd65d9627f 100644 --- a/libretro-db/rmsgpack.c +++ b/libretro-db/rmsgpack.c @@ -540,7 +540,7 @@ int rmsgpack_read(FILE *fp, case 0xcd: case 0xce: case 0xcf: - tmp_len = 1UL << (type - 0xcc); + tmp_len = UINT32_C(1) << (type - 0xcc); tmp_uint = 0; if (read_uint(fp, &tmp_uint, (size_t)tmp_len) == -1) return -errno; @@ -552,7 +552,7 @@ int rmsgpack_read(FILE *fp, case 0xd1: case 0xd2: case 0xd3: - tmp_len = 1UL << (type - 0xd0); + tmp_len = UINT32_C(1) << (type - 0xd0); tmp_int = 0; if (read_int(fp, &tmp_int, (size_t)tmp_len) == -1) return -errno;