diff --git a/cg/cg5500.cpp b/cg/cg5500.cpp index 5751b5fcc..aaa208d03 100755 --- a/cg/cg5500.cpp +++ b/cg/cg5500.cpp @@ -602,7 +602,7 @@ bool Visliq_app::vis_one(int m) msk.field(F_RIMBORSO).set(rimborso.string()); if (rettifica.sign() < 0) { - msk.field(F_RETTIFICA).set(abs(rettifica).string()); + msk.field(F_RETTIFICA).set(((real) abs(rettifica)).string()); msk.field(F_DEBCRE).set("C"); } else if (rettifica.sign() > 0) @@ -919,7 +919,7 @@ void Visliq_app::recalc_liq_data(TViswin* vsw, real& rimb, real& rett, real& ver } else if (rett.sign() < 0) { - vsw->replace(lrettc, abs(rett).string("###.###.###.###"), 58); + vsw->replace(lrettc, ((real) abs(rett)).string("###.###.###.###"), 58); vsw->replace(lrettd, " ", 75); } else @@ -931,7 +931,7 @@ void Visliq_app::recalc_liq_data(TViswin* vsw, real& rimb, real& rett, real& ver if (risul.sign() < 0) { ln.overwrite("CREDITO ATTUALE", 23); - ln.overwrite(abs(risul).string("###.###.###.###"), 58); + ln.overwrite(((real) abs(risul)).string("###.###.###.###"), 58); } else if (risul.sign() > 0) { @@ -1030,10 +1030,10 @@ void Visliq_app::recalc_next_liq(int start_month, TSheet_field* sl, TSheet_field int sr0 = (_lim->get_real("R0")).sign(); int sr5 = (_lim->get_real("R5")).sign(); - t.add(abs(_lim->get_real("R0")).string(),1); + t.add(((real) abs(_lim->get_real("R0"))).string(),1); t.add(sr0 == 0 ? "" : (sr0 > 0 ? "D" : "C"), 2); t.add((_lim->get_real("R1")).string(),3); - t.add(abs(_lim->get_real("R5")).string(),4); + t.add(((real) abs(_lim->get_real("R5"))).string(),4); t.add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5); sl->force_update(row); @@ -1132,14 +1132,14 @@ void Visliq_app::read_general(TMask& m) else tt = &(sh.row(i-1)); tt->add(itoname(i),0); - tt->add(abs(_lim->get_real("R0")).string(),1); + tt->add(((real) abs(_lim->get_real("R0"))).string(),1); int sr0 = (_lim->get_real("R0")).sign(); int sr5 = (_lim->get_real("R5")).sign(); tt->add(sr0 == 0 ? "" : (sr0 > 0 ? "D" : "C"),2); tt->add(_lim->get_real("R1").string(),3); - tt->add(abs(_lim->get_real("R5")).string(),4); + tt->add(((real) abs(_lim->get_real("R5"))).string(),4); tt->add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5); sh.row(i-1) = (*tt); @@ -1505,10 +1505,10 @@ if (was_lim) int sr0 = (_lim->get_real("R0")).sign(); int sr5 = (_lim->get_real("R5")).sign(); - tt_ln.add(abs(_lim->get_real("R0")).string(),1); + tt_ln.add(((real) abs(_lim->get_real("R0"))).string(),1); tt_ln.add(sr0 == 0 ? "" : (sr0 > 0 ? "D" : "C"), 2); tt_ln.add((_lim->get_real("R1")).string(),3); - tt_ln.add(abs(_lim->get_real("R5")).string(),4); + tt_ln.add(((real) abs(_lim->get_real("R5"))).string(),4); tt_ln.add(sr5 == 0 ? "" : (sr5 > 0 ? "D" : "C"),5); // sh.force_update(row);