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 2c3b43d commit 9214846Copy full SHA for 9214846
nibabel/freesurfer/io.py
@@ -31,7 +31,7 @@ def _fread3(fobj):
31
n : int
32
A 3 byte int
33
"""
34
- b1, b2, b3 = np.fromfile(fobj, '>u1', 3)
+ b1, b2, b3 = np.fromfile(fobj, '>u1', 3).astype(int)
35
return (b1 << 16) + (b2 << 8) + b3
36
37
0 commit comments