From dd79e4bf43868ecdb8d34d0981d0bd8fea342799 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 3 Jun 2015 17:00:25 +0200 Subject: ucoo/arch/host/mex: fix C++11 warning --- ucoo/arch/host/mex/test/test_mex.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ucoo/arch') diff --git a/ucoo/arch/host/mex/test/test_mex.cc b/ucoo/arch/host/mex/test/test_mex.cc index d7834a9..3c844cd 100644 --- a/ucoo/arch/host/mex/test/test_mex.cc +++ b/ucoo/arch/host/mex/test/test_mex.cc @@ -116,7 +116,12 @@ test_msg () { uint32_t ua, ub, uc; int32_t a, b, c; - const char rb[] = { 0x01, 0xff, 0xfe, 0xfd, 0xfc, 1, 2, 3, 4 }; + const char rb[] = { 0x01, + static_cast (0xff), + static_cast (0xfe), + static_cast (0xfd), + static_cast (0xfc), + 1, 2, 3, 4 }; TestReader r (rb); Msg m (r); check (m.mtype (), 1, "mtype"); -- cgit v1.2.3