aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-23 14:21:02 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-23 14:21:02 +0100
commitc6d8d70109a2757a21ad9783e5daaae08260ac07 (patch)
tree1ecce562dda699126cb2f6d1c8de129ddd02b791 /kernel
parent0822b21844dfe6d05ce563407385aa59fd0d560e (diff)
downloadyosys-c6d8d70109a2757a21ad9783e5daaae08260ac07.tar.gz
yosys-c6d8d70109a2757a21ad9783e5daaae08260ac07.tar.bz2
yosys-c6d8d70109a2757a21ad9783e5daaae08260ac07.zip
Fix mingw compile issue (2nd attempt)
Diffstat (limited to 'kernel')
-rw-r--r--kernel/calc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/calc.cc b/kernel/calc.cc
index 93d592f35..4a4840771 100644
--- a/kernel/calc.cc
+++ b/kernel/calc.cc
@@ -291,7 +291,7 @@ static RTLIL::Const const_shift_worker(const RTLIL::Const &arg1, const RTLIL::Co
BigInteger pos = BigInteger(i) + offset;
if (pos < 0)
result.bits[i] = RTLIL::State::S0;
- else if (pos >= BigInteger(arg1.bits.size()))
+ else if (pos >= BigInteger(int(arg1.bits.size())))
result.bits[i] = sign_ext ? arg1.bits.back() : RTLIL::State::S0;
else
result.bits[i] = arg1.bits[pos.toInt()];
@@ -342,7 +342,7 @@ static RTLIL::Const const_shift_shiftx(const RTLIL::Const &arg1, const RTLIL::Co
for (int i = 0; i < result_len; i++) {
BigInteger pos = BigInteger(i) + offset;
- if (pos < 0 || pos >= BigInteger(arg1.bits.size()))
+ if (pos < 0 || pos >= BigInteger(int(arg1.bits.size())))
result.bits[i] = other_bits;
else
result.bits[i] = arg1.bits[pos.toInt()];