Changeset 814


Ignore:
Timestamp:
01/13/16 14:06:32 (6 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

Location:
XIOS/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/event_client.cpp

    r731 r814  
    88namespace xios 
    99{ 
    10    const size_t CEventClient::headerSize = sizeof(int) + sizeof(size_t) + sizeof(int) + sizeof(classId) + sizeof(typeId); 
     10   const size_t CEventClient::headerSize = sizeof(int) + sizeof(size_t) + sizeof(int) + sizeof(int) + sizeof(int); // The two last one signify sizeof(classId) and sizeof(typeId) 
     11 
    1112 
    1213   CEventClient::CEventClient(int classId_, int typeId_) 
  • 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.