trying to fix gpio_slowdown

This commit is contained in:
Brendan Porter
2018-08-17 13:37:21 -05:00
parent 417f033a0e
commit c1ae882c7c

View File

@@ -159,7 +159,7 @@ const MatrixEmulatorENV = "MATRIX_EMULATOR"
func stringsToC(s []string) **C.char {
cArray := C.malloc(C.size_t(len(s)) * C.size_t(unsafe.Sizeof(uintptr(0))))
a := (*[1<<30 - 1]*C.char)(cArray)
a := (*[2000]*C.char)(cArray)
for idx, substring := range s {
a[idx] = C.CString(substring)