Merge pull request #62020 from HowePa/patch-1

fix npy big endianness
This commit is contained in:
Alexey Milovidov 2024-04-30 02:04:39 +02:00 committed by GitHub
commit e35330669f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ std::shared_ptr<NumpyDataType> parseType(String type)
NumpyDataType::Endianness endianness;
if (type[0] == '<')
endianness = NumpyDataType::Endianness::LITTLE;
else if (type[1] == '>')
else if (type[0] == '>')
endianness = NumpyDataType::Endianness::BIG;
else if (type[0] == '|')
endianness = NumpyDataType::Endianness::NONE;