From 5dea3c537432960029f186017216237050fbefe9 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 11 Mar 1999 22:52:04 +0000 Subject: [PATCH] type reworking git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@370 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/ShiftOperator.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/jode/jode/expr/ShiftOperator.java b/jode/jode/expr/ShiftOperator.java index 76a915d..6033b88 100644 --- a/jode/jode/expr/ShiftOperator.java +++ b/jode/jode/expr/ShiftOperator.java @@ -24,19 +24,16 @@ import jode.Type; * ShiftOpcodes are special, because their second operand is an UIndex */ public class ShiftOperator extends BinaryOperator { - protected Type shiftType; public ShiftOperator(Type type, int op) { super(type, op); - shiftType = Type.tInt; } public Type getOperandType(int i) { - return (i==0)?operandType:shiftType; + return (i==0) ? type : Type.tInt; } public void setOperandType(Type[] inputTypes) { - operandType = operandType.intersection(inputTypes[0]); - shiftType = shiftType .intersection(inputTypes[1]); + setType(inputTypes[0]); } }