From 1c7c601988c3137f79081abfbe3bb7bc4f986594 Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 16 Mar 2004 10:56:14 +0000 Subject: [PATCH] Patch level :2.1 nopatch Files correlati :ab0.exe Ricompilazione Demo : [ ] Commento :corretto uso funzione abs() git-svn-id: svn://10.65.10.50/trunk@11872 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ab/ab0400.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ab/ab0400.cpp b/ab/ab0400.cpp index ad060b106..7f57607b4 100755 --- a/ab/ab0400.cpp +++ b/ab/ab0400.cpp @@ -680,6 +680,8 @@ void TRicl_saldi::output_line(TFile_type t, const char * key, TRiga_output & r, _dbf->rewrite(rec); } else + { + real tmp; if (t == _csvfile) { *_file << _codes << ";"; @@ -688,11 +690,13 @@ void TRicl_saldi::output_line(TFile_type t, const char * key, TRiga_output & r, if (is_commessa) *_file << codcms << ";"; *_file << "\"" << descr << "\";"; - *_file << abs(si).stringa() << ";"; + tmp = abs(si); + *_file << tmp.stringa() << ";"; *_file << fsi << ";"; *_file << pd.stringa() << ";"; *_file << pa.stringa() << ";"; - *_file << abs(s).stringa() << ";"; + tmp = abs(s); + *_file << tmp.stringa() << ";"; *_file << fs << ";"; *_file << _dal << ";"; *_file << _al << ";"; @@ -706,16 +710,19 @@ void TRicl_saldi::output_line(TFile_type t, const char * key, TRiga_output & r, if (is_commessa) *_file << codcms << "\t"; *_file << descr << "\t"; - *_file << abs(si).stringa() << "\t"; + tmp = abs(si); + *_file << tmp.stringa() << "\t"; *_file << fsi << "\t"; *_file << pd.stringa() << "\t"; *_file << pa.stringa() << "\t"; - *_file << abs(s).stringa() << "\t"; + tmp = abs(s); + *_file << tmp.stringa() << "\t"; *_file << fs << "\t"; *_file << _dal << "\t"; *_file << _al << "\t"; *_file << _codpdb << "\n"; } + } } void TRicl_saldi::close_output(TFile_type t)