Skip to content

Commit 32271df

Browse files
committed
BF: Coerce parsed GiftiDataArray.ext_offset to int
1 parent 5f632fe commit 32271df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/gifti/parse_gifti_fast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def StartElementHandler(self, name, attrs):
187187
if "ExternalFileName" in attrs:
188188
self.da.ext_fname = attrs["ExternalFileName"]
189189
if "ExternalFileOffset" in attrs:
190-
self.da.ext_offset = attrs["ExternalFileOffset"]
190+
self.da.ext_offset = int(attrs["ExternalFileOffset"])
191191
self.img.darrays.append(self.da)
192192
self.fsm_state.append('DataArray')
193193

0 commit comments

Comments
 (0)