From 8114279816ea3f07c17b205e4e205d30a9fa3533 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 12 Apr 2021 00:17:07 +0200 Subject: [PATCH] fix warning with msvc --- src/cs_gen.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cs_gen.cc b/src/cs_gen.cc index 17f9b7a..bdeb7f9 100644 --- a/src/cs_gen.cc +++ b/src/cs_gen.cc @@ -383,9 +383,13 @@ void gen_state::gen_concat(std::size_t concs, bool space, int ltype) { return; } if (space) { - code.push_back(BC_INST_CONC | ret_code(ltype) | (concs << 8)); + code.push_back( + BC_INST_CONC | ret_code(ltype) | std::uint32_t(concs << 8) + ); } else { - code.push_back(BC_INST_CONC_W | ret_code(ltype) | (concs << 8)); + code.push_back( + BC_INST_CONC_W | ret_code(ltype) | std::uint32_t(concs << 8) + ); } }