Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 5, 2021
1 parent 720ea0d commit c751c7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/eez/flow/operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Value op_add(const Value& a1, const Value& b1) {
}

if (a.isInt32OrLess() && b.isInt32OrLess()) {
return Value(a.int32Value + b.int32Value, VALUE_TYPE_INT32);
return Value((int)(a.int32Value + b.int32Value), VALUE_TYPE_INT32);
}

return Value();
Expand All @@ -70,7 +70,7 @@ Value op_sub(const Value& a1, const Value& b1) {
}

if (a.isInt32OrLess() && b.isInt32OrLess()) {
return Value(a.int32Value - b.int32Value, VALUE_TYPE_INT32);
return Value((int)(a.int32Value - b.int32Value), VALUE_TYPE_INT32);
}

return Value();
Expand All @@ -93,7 +93,7 @@ Value op_mul(const Value& a1, const Value& b1) {
}

if (a.isInt32OrLess() && b.isInt32OrLess()) {
return Value(a.int32Value * b.int32Value, VALUE_TYPE_INT32);
return Value((int)(a.int32Value * b.int32Value), VALUE_TYPE_INT32);
}

return Value();
Expand All @@ -116,7 +116,7 @@ Value op_div(const Value& a1, const Value& b1) {
}

if (a.isInt32OrLess() && b.isInt32OrLess()) {
return Value(a.int32Value / b.int32Value, VALUE_TYPE_INT32);
return Value((int)(a.int32Value / b.int32Value), VALUE_TYPE_INT32);
}

return Value();
Expand All @@ -131,7 +131,7 @@ Value op_mod(const Value& a1, const Value& b1) {
}

if (a.isInt32OrLess() && b.isInt32OrLess()) {
return Value(a.int32Value % b.int32Value, VALUE_TYPE_INT32);
return Value((int)(a.int32Value % b.int32Value), VALUE_TYPE_INT32);
}

return Value();
Expand Down

0 comments on commit c751c7b

Please sign in to comment.