We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4ca80 commit 9486f13Copy full SHA for 9486f13
src/stdlib_io_npy_load.fypp
@@ -136,7 +136,7 @@ contains
136
header_len = ichar(buf(1)) &
137
& + ichar(buf(2)) * 2**8 &
138
& + ichar(buf(3)) * 2**16 &
139
- & + ichar(buf(4)) * 2**32
+ & + ichar(buf(4)) * 2**24
140
else
141
142
& + ichar(buf(2)) * 2**8
src/stdlib_io_npy_save.fypp
@@ -62,8 +62,8 @@ contains
62
63
str = achar(mod(val, 2**8)) // &
64
& achar(mod(val, 2**16) / 2**8) // &
65
- & achar(mod(val, 2**32) / 2**16) // &
66
- & achar(val / 2**32)
+ & achar(mod(val, 2**24) / 2**16) // &
+ & achar(val / 2**24)
67
end function to_bytes_i4
68
69
0 commit comments