Changeset 205


Ignore:
Timestamp:
Mar 27, 2011 8:13:30 AM (9 years ago)
Author:
kulshres
Message:

avoid division by zero.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/tape_handling.cpp

    r204 r205  
    139139    // we use index 0 as end-of-list marker
    140140    size_t i = 1;
    141     //     storePtr[0] = nan(""); not available on solaris
    142     storePtr[0] = (non_num/non_den);
     141    storePtr[0] =  std::numeric_limits<double>::quiet_NaN();
    143142
    144143    if (alteGroesse != initialeGroesse) { // not the first time
Note: See TracChangeset for help on using the changeset viewer.