Changeset 1790 for trunk/bindings


Ignore:
Timestamp:
09/12/11 15:13:41 (6 months ago)
Author:
Freddie Akeroyd
Message:

Fix some warnings. Refs #286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/cpp/NeXusFile.cpp

    r1774 r1790  
    139139  int rank = dims.size(); 
    140140  int64_t c_dims[NX_MAXRANK]; 
    141   for (size_t i = 0; i < rank; i++) { 
     141  for (int i = 0; i < rank; i++) { 
    142142    c_dims[i] = dims[i]; 
    143143  } 
     
    10181018    throw Exception(msg.str()); 
    10191019  } 
    1020  
    1021   int rank = start.size(); 
    10221020 
    10231021  NXstatus status = NXgetslab64(this->m_file_id, data, &(start[0]), &(size[0])); 
     
    10711069  } 
    10721070  // char attributes are always NULL terminated and so may change length 
    1073   if (length != info.length && type != NX_CHAR) { 
     1071  if (static_cast<unsigned>(length) != info.length && type != NX_CHAR) { 
    10741072    stringstream msg; 
    10751073    msg << "NXgetattr(" << info.name << ") change length [" << info.length 
Note: See TracChangeset for help on using the changeset viewer.