Commit e17de0e3 authored by Han Young's avatar Han Young
Browse files

Revert "change the result of division between two integer to float"

This reverts commit e2ebf41f.
parent e2ebf41f
......@@ -244,7 +244,7 @@ knumber_base *knumber_integer::div(knumber_base *rhs) {
}
if(knumber_integer *const p = dynamic_cast<knumber_integer *>(rhs)) {
auto *q = new knumber_float(this);
knumber_fraction *q = new knumber_fraction(this);
delete this;
return q->div(p);
} else if(knumber_float *const p = dynamic_cast<knumber_float *>(rhs)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment