File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ import (
29
29
30
30
//export callbackTrampoline
31
31
func callbackTrampoline (ctx * C.sqlite3_context , argc int , argv * * C.sqlite3_value ) {
32
- args := (* [math .MaxInt32 - 1 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
32
+ args := (* [( math .MaxInt32 - 1 ) / unsafe . Sizeof (( * C . sqlite3_value )( nil )) ]* 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
- args := (* [math .MaxInt32 - 1 ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
39
+ args := (* [( math .MaxInt32 - 1 ) / unsafe . Sizeof (( * C . sqlite3_value )( nil )) ]* C.sqlite3_value )(unsafe .Pointer (argv ))[:argc :argc ]
40
40
ai := (* aggInfo )(unsafe .Pointer (C .sqlite3_user_data (ctx )))
41
41
ai .Step (ctx , args )
42
42
}
You can’t perform that action at this time.
0 commit comments