Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Jul 3, 2024
1 parent 77f850f commit e8a4b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,10 @@ cdef class gribmessage(object):
raise RuntimeError(_get_error_message(err))
return longval
else: # array
datarr = np.zeros(size, np.int32)
if os.name == 'nt':
datarr = np.zeros(size, np.int32)
else:
datarr = np.zeros(size, np.int_)
print('getting long_array',size)
err = grib_get_long_array(self._gh, name, <long *>datarr.data, &size)
print('getting long_array',datarr.min(), datarr.max())
Expand Down

0 comments on commit e8a4b53

Please sign in to comment.