提交 7aa23f35 编写于 作者: M Michiharu Ariza

fix build attempt ^4

上级 270452a4
......@@ -116,11 +116,11 @@ struct CFFCSOpSet : CSOpSet<CFFSubrs, PARAM>
return true;
case OpCode_and:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
env.argStack.push_int ((n1.to_real() != 0.0f) && (n1.to_real() != 0.0f));
env.argStack.push_int ((n1.to_real() != 0.0f) && (n2.to_real() != 0.0f));
break;
case OpCode_or:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
env.argStack.push_int ((n1.to_real() != 0.0f) || (n1.to_real() != 0.0f));
env.argStack.push_int ((n1.to_real() != 0.0f) || (n2.to_real() != 0.0f));
break;
case OpCode_not:
if (unlikely (!env.argStack.check_pop_num (n1))) return false;
......@@ -132,11 +132,11 @@ struct CFFCSOpSet : CSOpSet<CFFSubrs, PARAM>
break;
case OpCode_add:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
env.argStack.push_real (n1.to_real() + n1.to_real());
env.argStack.push_real (n1.to_real() + n2.to_real());
break;
case OpCode_sub:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
env.argStack.push_real (n1.to_real() - n1.to_real());
env.argStack.push_real (n1.to_real() - n2.to_real());
break;
case OpCode_div:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
......@@ -151,7 +151,7 @@ struct CFFCSOpSet : CSOpSet<CFFSubrs, PARAM>
break;
case OpCode_eq:
if (unlikely (!env.argStack.check_pop_num2 (n1, n2))) return false;
env.argStack.push_int (n1.to_real() == n1.to_real());
env.argStack.push_int (n1.to_real() == n2.to_real());
break;
case OpCode_drop:
if (unlikely (!env.argStack.check_pop_num (n1))) return false;
......
......@@ -209,7 +209,7 @@ struct CFFCSOpSet_SubrSubset : CFFCSOpSet<SubrRefMapPair>
default:
break;
}
return CFFCSOpSet::process_op (op, env, refMapPair);
return CFFCSOpSet<SubrRefMapPair>::process_op (op, env, refMapPair);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册