File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ func (table *Table) Get(key []byte) ([]byte, error) {
151
151
if err != nil {
152
152
return nil , fmt .Errorf ("get possible cpus: %w" , err )
153
153
}
154
- leafSize *= C .ulong (len (cpus ))
154
+ leafSize *= C .size_t (len (cpus ))
155
155
}
156
156
leaf := make ([]byte , leafSize )
157
157
leafP := unsafe .Pointer (& leaf [0 ])
@@ -180,7 +180,7 @@ func (table *Table) GetP(key unsafe.Pointer) (unsafe.Pointer, error) {
180
180
if err != nil {
181
181
return nil , fmt .Errorf ("get possible cpus: %w" , err )
182
182
}
183
- leafSize *= C .ulong (len (cpus ))
183
+ leafSize *= C .size_t (len (cpus ))
184
184
}
185
185
leaf := make ([]byte , leafSize )
186
186
leafP := unsafe .Pointer (& leaf [0 ])
@@ -318,7 +318,7 @@ func (it *TableIterator) Next() bool {
318
318
it .err = fmt .Errorf ("get possible cpus: %w" , err )
319
319
return false
320
320
}
321
- leafSize *= C .ulong (len (cpus ))
321
+ leafSize *= C .size_t (len (cpus ))
322
322
}
323
323
leaf := make ([]byte , leafSize )
324
324
You can’t perform that action at this time.
0 commit comments