Skip to content

Commit 3d862bf

Browse files
mattnkortschak
authored andcommitted
hdf5: Fix build on Windows
1 parent 4dd8a5a commit 3d862bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h5a_attribute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (s *Attribute) Read(data interface{}, dtype *Datatype) error {
9393

9494
dtype = dtAttr
9595
dlen := dtype.Size()
96-
cstr := (*C.char)(unsafe.Pointer(C.malloc(C.ulong(uint(unsafe.Sizeof(byte(0))) * (dlen + 1)))))
96+
cstr := (*C.char)(unsafe.Pointer(C.malloc(C.size_t(uint(unsafe.Sizeof(byte(0))) * (dlen + 1)))))
9797
defer C.free(unsafe.Pointer(cstr))
9898
switch {
9999
case C.H5Tis_variable_str(dtAttr.Identifier.id) != 0:

0 commit comments

Comments
 (0)