File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,21 @@ import "C"
22
22
import (
23
23
"errors"
24
24
"fmt"
25
+ "math"
25
26
"reflect"
26
27
"unsafe"
27
28
)
28
29
29
30
//export callbackTrampoline
30
31
func callbackTrampoline (ctx * C.sqlite3_context , argc int , argv * * C.sqlite3_value ) {
31
- // TODO should create slice dynamically?
32
- args := (* [1 << 20 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
32
+ args := (* [math .MaxInt32 - 1 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
33
33
fi := (* functionInfo )(unsafe .Pointer (C .sqlite3_user_data (ctx )))
34
34
fi .Call (ctx , args )
35
35
}
36
36
37
37
//export stepTrampoline
38
38
func stepTrampoline (ctx * C.sqlite3_context , argc int , argv * * C.sqlite3_value ) {
39
- // TODO should create slice dynamically?
40
- args := (* [1 << 20 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
39
+ args := (* [math .MaxInt32 - 1 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
41
40
ai := (* aggInfo )(unsafe .Pointer (C .sqlite3_user_data (ctx )))
42
41
ai .Step (ctx , args )
43
42
}
You can’t perform that action at this time.
0 commit comments