From 6c89d4ca26025519355ac9c6b6ddb08791621d11 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Tue, 1 Sep 2015 15:08:21 -0300 Subject: Fix narrowing conversion warning --- src/core/hle/service/cfg/cfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/service/cfg') diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h index c4155da81..7b7a76b08 100644 --- a/src/core/hle/service/cfg/cfg.h +++ b/src/core/hle/service/cfg/cfg.h @@ -42,7 +42,7 @@ struct SaveConfigBlockEntry { }; // TODO(Link Mauve): use a constexpr once MSVC starts supporting it. -#define C(code) ((code)[0] | ((code)[1] << 8)) +#define C(code) (u16)((code)[0] | ((code)[1] << 8)) static const std::array country_codes = { 0, C("JP"), 0, 0, 0, 0, 0, 0, // 0-7 -- cgit v1.2.3