Changeset 5:72c96d0a2357 in rrlib_rtti_conversion


Ignore:
Timestamp:
10.08.2017 17:44:21 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes exception condition when compiling conversion operation sequences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tConversionOperationSequence.cpp

    r3 r5  
    285285 
    286286  // Do some sanity checks 
    287   if (conversion1->const_offset_reference_to_source_object > std::numeric_limits<unsigned int>::max() / 2 || last_conversion->const_offset_reference_to_source_object > std::numeric_limits<unsigned int>::max() / 2) 
     287  if ((conversion1->type == tConversionOptionType::CONST_OFFSET_REFERENCE_TO_SOURCE_OBJECT && conversion1->const_offset_reference_to_source_object > std::numeric_limits<unsigned int>::max() / 2) || 
     288      (last_conversion->type == tConversionOptionType::CONST_OFFSET_REFERENCE_TO_SOURCE_OBJECT && last_conversion->const_offset_reference_to_source_object > std::numeric_limits<unsigned int>::max() / 2)) 
    288289  { 
    289290    throw std::runtime_error("Invalid fixed offset in conversion option"); 
Note: See TracChangeset for help on using the changeset viewer.