Changeset 67:1ea49a34f3b6 in finroc_plugins_network_transport for runtime_info/tRemoteType.cpp


Ignore:
Timestamp:
05.05.2020 00:41:07 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
68:f6d1e4ad13c1, 69:bc2442a352ac
Phase:
public
Message:

Fixes warning with gcc 9.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • runtime_info/tRemoteType.cpp

    r59 r67  
    320320        { 
    321321          const make_builder::internal::tEnumStrings* enum_strings = type.GetEnumStringsData(); 
    322           assert(enum_strings->size <= std::numeric_limits<short>::max() + 1); // more values would be quite ridiculous 
     322          assert(enum_strings->size <= static_cast<size_t>(std::numeric_limits<short>::max()) + 1); // more values would be quite ridiculous 
    323323          stream.WriteShort(static_cast<uint16_t>(enum_strings->size)); 
    324324          bool send_values = enum_strings->non_standard_values; 
Note: See TracChangeset for help on using the changeset viewer.