rogersce / cnpy

library to read/write .npy and .npz files in C/C++
MIT License
1.34k stars 301 forks source link

fortran_order bug #7

Closed tbetcke closed 7 years ago

tbetcke commented 10 years ago

Dear rogersce,

thanks for the wonderful library to read .npy files. There is a small bug in the recognition of the Fortran order. In cnpy.cpp in line 72 it should be (header.substr(loc1,4) instead of (header.substr(loc1,5)

Best wishes

Timo

rogersce commented 7 years ago

thank you, it's fixed.