Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSteinberg committed Aug 30, 2024
1 parent 2d44df4 commit e55f8a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native/property_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -709,16 +709,16 @@ std::unique_ptr<PropertyReader> create_property_reader(

static_assert(sizeof(uint64_t) == sizeof(unsigned long));
case DataType::UINT8:
return make_primitive_reader<int8_t>(property_path,
return make_primitive_reader<uint8_t>(property_path,
PyLong_FromUnsignedLong);
case DataType::UINT16:
return make_primitive_reader<int16_t>(property_path,
return make_primitive_reader<uint16_t>(property_path,
PyLong_FromUnsignedLong);
case DataType::UINT32:
return make_primitive_reader<int32_t>(property_path,
return make_primitive_reader<uint32_t>(property_path,
PyLong_FromUnsignedLong);
case DataType::UINT64:
return make_primitive_reader<int64_t>(property_path,
return make_primitive_reader<uint64_t>(property_path,
PyLong_FromUnsignedLong);
}

Expand Down

0 comments on commit e55f8a9

Please sign in to comment.