Changeset 2339


Ignore:
Timestamp:
Jun 23, 2017 1:16:44 PM (7 months ago)
Author:
forrest
Message:

to unsigned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcCountRowCut.cpp

    r2125 r2339  
    149149  }
    150150  // should be compile time but too lazy for now
     151  union { double d; unsigned int i[2]; } xx;
    151152  if (sizeof(value)>sizeof(hashValue)) {
    152153    assert (sizeof(value)==2*sizeof(hashValue));
    153     union { double d; int i[2]; } xx;
    154154    xx.d = value;
    155155    hashValue = (xx.i[0] + xx.i[1]);
    156156  } else {
    157157    assert (sizeof(value)==sizeof(hashValue));
    158     union { double d; unsigned int i[2]; } xx;
    159158    xx.d = value;
    160159    hashValue = xx.i[0];
Note: See TracChangeset for help on using the changeset viewer.