@@ -63,15 +63,15 @@ const mod_methods = {
6363 const struct = { } ;
6464 struct [ 'nConstraint' ] = getValue ( p + offset [ 0 ] , 'i32' ) ;
6565 struct [ 'aConstraint' ] = [ ] ;
66- const constraintPtr = getValue ( p + offset [ 1 ] , 'i32 ' ) ;
66+ const constraintPtr = getValue ( p + offset [ 1 ] , '* ' ) ;
6767 const constraintSize = mapStructToLayout . get ( 'sqlite3_index_constraint' ) . size ;
6868 for ( let i = 0 ; i < struct [ 'nConstraint' ] ; ++ i ) {
6969 struct [ 'aConstraint' ] . push (
7070 unpack_sqlite3_index_constraint ( constraintPtr + i * constraintSize ) ) ;
7171 }
7272 struct [ 'nOrderBy' ] = getValue ( p + offset [ 2 ] , 'i32' ) ;
7373 struct [ 'aOrderBy' ] = [ ] ;
74- const orderPtr = getValue ( p + offset [ 3 ] , 'i32 ' ) ;
74+ const orderPtr = getValue ( p + offset [ 3 ] , '* ' ) ;
7575 const orderSize = mapStructToLayout . get ( 'sqlite3_index_orderby' ) . size ;
7676 for ( let i = 0 ; i < struct [ 'nOrderBy' ] ; ++ i ) {
7777 struct [ 'aOrderBy' ] . push (
@@ -117,7 +117,7 @@ const mod_methods = {
117117 function pack_sqlite3_index_info ( p , struct ) {
118118 const layout = mapStructToLayout . get ( 'sqlite3_index_info' ) ;
119119 const offset = layout . offsets ;
120- const usagePtr = getValue ( p + offset [ 4 ] , 'i32 ' ) ;
120+ const usagePtr = getValue ( p + offset [ 4 ] , '* ' ) ;
121121 const usageSize = mapStructToLayout . get ( 'sqlite3_index_constraint_usage' ) . size ;
122122 for ( let i = 0 ; i < struct [ 'nConstraint' ] ; ++ i ) {
123123 pack_sqlite_index_constraint_usage (
@@ -129,7 +129,7 @@ const mod_methods = {
129129 const length = lengthBytesUTF8 ( struct [ 'idxStr' ] ) ;
130130 const z = ccall ( 'sqlite3_malloc' , 'number' , [ 'number' ] , [ length + 1 ] ) ;
131131 stringToUTF8 ( struct [ 'idxStr' ] , z , length + 1 ) ;
132- setValue ( p + offset [ 6 ] , z , 'i32 ' ) ;
132+ setValue ( p + offset [ 6 ] , z , '* ' ) ;
133133 setValue ( p + offset [ 7 ] , 1 , 'i32' ) ;
134134 }
135135 setValue ( p + offset [ 8 ] , struct [ 'orderByConsumed' ] , 'i32' ) ;
0 commit comments