From 02c27b58c61da87c14f5b608eb7a6a6b91ad0b73 Mon Sep 17 00:00:00 2001 From: unzner Date: Sat, 22 Dec 2012 18:30:50 +0000 Subject: [PATCH] Removed narrowing conversion git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1986 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/experiments/l4-sys/aluinstr.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/experiments/l4-sys/aluinstr.cc b/src/experiments/l4-sys/aluinstr.cc index 6d11df85..b8b527ab 100644 --- a/src/experiments/l4-sys/aluinstr.cc +++ b/src/experiments/l4-sys/aluinstr.cc @@ -32,9 +32,10 @@ void BochsALUInstructions::buildEquivalenceClasses() { InstrList &currVector = equivalenceClasses[allInstr[i].aluClass]; if (allInstr[i].opcodeRegisterOffset <= BochsALUInstr::REG_COUNT) { // add an entry for each possible opcode - for (int j = 0; j < allInstr[i].opcodeRegisterOffset; j++) { + for (Bit8u j = 0; j < allInstr[i].opcodeRegisterOffset; j++) { + Bit8u new_opcode = allInstr[i].opcode + j; BochsALUInstr newInstr = { allInstr[i].bochs_operation, - allInstr[i].opcode + j, + new_opcode, allInstr[i].reg, j, allInstr[i].aluClass };