Changeset 458


Ignore:
Timestamp:
Jan 31, 2014 11:13:59 AM (6 years ago)
Author:
kulshres
Message:

fix firstsign to actually do the right thing

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/uni5_for.c

    r456 r458  
    53955395    int i=0;
    53965396    double tmp;
    5397     tmp=(u>0.0)?1.0:0.0;
    5398     tmp=(u<0.0)?-1.0:0.0;
     5397    tmp=(u>0.0)?1.0:((u<0.0)?-1.0:0.0);
    53995398    while(i<p && tmp==0.0) {
    5400         tmp=(du[i]>0.0)?1.0:0.0;
    5401         tmp=(du[i]<0.0)?-1.0:0.0;
     5399        tmp=(du[i]>0.0)?1.0:((du[i]<0.0)?-1.0:0.0);
    54025400        i++;
    54035401    }
Note: See TracChangeset for help on using the changeset viewer.