mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
Erasure restructuring
This commit is contained in:
@@ -23,10 +23,10 @@ import (
|
||||
)
|
||||
|
||||
// Integer to Int conversion
|
||||
func Int2cInt(src_err_list []int) *C.int {
|
||||
SrcErrInt := int(unsafe.Sizeof(src_err_list[0]))
|
||||
switch SrcErrInt {
|
||||
case SizeInt:
|
||||
func int2cInt(src_err_list []int) *C.int {
|
||||
var SrcErrInt = int(unsafe.Sizeof(src_err_list[0]))
|
||||
switch SizeInt {
|
||||
case SrcErrInt:
|
||||
return (*C.int)(unsafe.Pointer(&src_err_list[0]))
|
||||
case SizeInt8:
|
||||
Int8Array := make([]int8, len(src_err_list))
|
||||
|
||||
Reference in New Issue
Block a user