[Kst] Re: A couple of issues with the new ASCII

Brisset, Nicolas Nicolas.Brisset at eurocopter.com
Thu Jan 27 14:14:43 CET 2011


> The code for Fixed looks totally buggy:
> 
> v[i] = lexc.toDouble(&buffer[0] + _rowIndex[i] - _rowIndex[0] +
> _config._columnWidth * (col - 1));
> 
> could only work when _rowIndex[0] == 0.
> 
> 
> Shouldn't it be read like this: goto the beginning of line i and then
> forward to the column start:
> 
> v[i] = lexc.toDouble(&buffer[0] + _rowIndex[i] + _config._columnWidth
*
> (col - 1));
Yeah, you're probably right. Actually rowIndex[0] will always be 0,
won't it? If you're sure enough, go ahead and commit it. We'll have to
do some tests in any case...

Nicolas 



Eurocopter Deutschland GmbH
Sitz der Gesellschaft/Registered Office: Donauwoerth
Registergericht/Registration Court: Amtsgericht Augsburg HRB 16508
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Lutz Bertling
Geschaeftsfuehrung/Board of Management:
Dr. Wolfgang Schoder, Vorsitzender/CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt

CONFIDENTIALITY NOTICE 

This communication and the information it contains is intended for the addressee(s) named above and for no other persons or organizations. It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. 
If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. Thank you very much. 
It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses or other material which might be introduced with this message. 



More information about the Kst mailing list