[CoinUtils-tickets] [COIN-OR Common Utilities] #56: Incorrect treatment of infinity when reading

COIN-OR Common Utilities coin-trac at coin-or.org
Tue Nov 4 16:32:30 EST 2008


#56: Incorrect treatment of infinity when reading
----------------------+-----------------------------------------------------
  Reporter:  fmargot  |      Owner:             
      Type:  defect   |     Status:  new        
  Priority:  minor    |    Version:  trunk (SVN)
Resolution:           |   Keywords:  infinity   
----------------------+-----------------------------------------------------
Comment (by ladanyi):

 Hi Francois,

 Something is strange. I just looked at trunk and the code is different
 from what you quote. around line 1614 it is:
 {{{
         if(buff[0] == '-') {
           mult = -1;
           if(strlen(buff) == 1) {
             scan_next(buff, fp);
             start_str = buff;
           }
           else {
             start_str = &(buff[1]);
           }
         }

         if(first_is_number(start_str)) {
           bnd1 = mult * atof(start_str);
           scan_next(buff, fp);
           read_sense1 = is_sense(buff);
 }}}

 Could you update your trunk and see if you still have the problem?

 Also, when entering code, could you enclose it in triple opening/closing
 brackets({}) for better readability?

 Thanks,
 --Laci

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/56#comment:2>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list