summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2015-11-20 12:21:55 -0600
committerChih-Hung Hsieh2015-11-20 12:21:55 -0600
commitcaa8810c644c67d79dcab2d7026baa41e01f935b (patch)
tree3d78c165b699dc55ccad13239b03ab96ec35c352 /libpixelflinger
parent389cab802a89b60bda7630762536785f8934d5fb (diff)
downloadplatform-system-core-caa8810c644c67d79dcab2d7026baa41e01f935b.tar.gz
platform-system-core-caa8810c644c67d79dcab2d7026baa41e01f935b.tar.xz
platform-system-core-caa8810c644c67d79dcab2d7026baa41e01f935b.zip
Add explicit cast to shut off clang warnings.
* The literals are signed int type and got warnings about .... cannot be narrowed to type int16_t [-Wc++11-narrowing] Change-Id: I156d8e456c70840953aebb24739f94256248b810
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/tests/arch-mips64/disassembler/mips64_disassembler_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libpixelflinger/tests/arch-mips64/disassembler/mips64_disassembler_test.cpp b/libpixelflinger/tests/arch-mips64/disassembler/mips64_disassembler_test.cpp
index 41f6f3ef9..22efa9fb6 100644
--- a/libpixelflinger/tests/arch-mips64/disassembler/mips64_disassembler_test.cpp
+++ b/libpixelflinger/tests/arch-mips64/disassembler/mips64_disassembler_test.cpp
@@ -123,13 +123,13 @@ struct test_branches_table_entry_t
123}; 123};
124 124
125static test_branches_table_entry_t test_branches_table [] = { 125static test_branches_table_entry_t test_branches_table [] = {
126 { 0x1000ffff, "b\t", 0xffff }, 126 { 0x1000ffff, "b\t", static_cast<int16_t>(0xffff) },
127 { 0x13df0008, "beq\ts8,ra,", 0x8 }, 127 { 0x13df0008, "beq\ts8,ra,", 0x8 },
128 { 0x042100ff, "bgez\tat,", 0xff }, 128 { 0x042100ff, "bgez\tat,", 0xff },
129 { 0x1c40ff00, "bgtz\tv0,", 0xff00 }, 129 { 0x1c40ff00, "bgtz\tv0,", static_cast<int16_t>(0xff00) },
130 { 0x18605555, "blez\tv1,", 0x5555 }, 130 { 0x18605555, "blez\tv1,", 0x5555 },
131 { 0x0480aaaa, "bltz\ta0,", 0xaaaa }, 131 { 0x0480aaaa, "bltz\ta0,", static_cast<int16_t>(0xaaaa) },
132 { 0x14a68888, "bne\ta1,a2,", 0x8888 }, 132 { 0x14a68888, "bne\ta1,a2,", static_cast<int16_t>(0x8888) },
133}; 133};
134 134
135struct test_jump_table_entry_t 135struct test_jump_table_entry_t