Ignore:
Timestamp:
01/13/16 14:06:32 (8 years ago)
Author:
mhnguyen
Message:

Correcting a bug on compilation with Intel whose version < 13.1

+) Use sizeof with type.

Test
+) On Curie
+) Compilation succeds with Intel: 12.1.9, 13.1.3 and version > 14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/utils.hpp

    r776 r814  
    141141  union TypeToBytes { 
    142142    T value; 
    143     unsigned char bytes[sizeof(value)]; 
     143    unsigned char bytes[sizeof(T)]; 
    144144  }; 
    145145 
Note: See TracChangeset for help on using the changeset viewer.