From 0e5b18a61964a78bfd084db99560f113194c048f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 17 Sep 2015 07:18:13 +0200 Subject: [PATCH] (libretrodb) Backport 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 6cb5d3a747..412735d471 100644 --- a/libretro-db/rmsgpack.c +++ b/libretro-db/rmsgpack.c @@ -528,7 +528,7 @@ int rmsgpack_read(int fd, case 0xcd: case 0xce: case 0xcf: - tmp_len = 1ULL << (type - 0xcc); + tmp_len = UINT32_C(1) << (type - 0xcc); tmp_uint = 0; if (read_uint(fd, &tmp_uint, tmp_len) == -1) return -errno; @@ -540,7 +540,7 @@ int rmsgpack_read(int fd, case 0xd1: case 0xd2: case 0xd3: - tmp_len = 1ULL << (type - 0xd0); + tmp_len = UINT32_C(1) << (type - 0xd0); tmp_int = 0; if (read_int(fd, &tmp_int, tmp_len) == -1) return -errno;