diff --git a/ffi/examples/visit-expression/expression.h b/ffi/examples/visit-expression/expression.h index 302566d1..eee88d1d 100644 --- a/ffi/examples/visit-expression/expression.h +++ b/ffi/examples/visit-expression/expression.h @@ -5,7 +5,6 @@ #include #include #include -#include #include /** diff --git a/ffi/examples/visit-expression/expression_print.h b/ffi/examples/visit-expression/expression_print.h index 23c1dcb7..7507c8de 100644 --- a/ffi/examples/visit-expression/expression_print.h +++ b/ffi/examples/visit-expression/expression_print.h @@ -144,11 +144,11 @@ void print_tree_helper(ExpressionItem ref, int depth) { } case Decimal: { struct Decimal* dec = &lit->value.decimal; - printf("Decimal(%lld,%lld, %d, %d)\n", + printf("Decimal(%lld,%lld,%d,%d)\n", (long long)dec->value[0], (long long)dec->value[1], - dec->scale, - dec->precision); + dec->precision, + dec->scale); break; } case Null: diff --git a/ffi/src/expressions/kernel.rs b/ffi/src/expressions/kernel.rs index 98d58f26..38c7b39b 100644 --- a/ffi/src/expressions/kernel.rs +++ b/ffi/src/expressions/kernel.rs @@ -106,7 +106,7 @@ pub struct EngineExpressionVisitor { pub visit_literal_struct: extern "C" fn( data: *mut c_void, sibling_list_id: usize, - child_field_list_value: usize, + child_field_list_id: usize, child_value_list_id: usize, ), /// Visit an array literal belonging to the list identified by `sibling_list_id`. diff --git a/ffi/src/test_ffi.rs b/ffi/src/test_ffi.rs index fa7e2ef0..27c7063f 100644 --- a/ffi/src/test_ffi.rs +++ b/ffi/src/test_ffi.rs @@ -61,7 +61,7 @@ pub unsafe extern "C" fn get_testing_kernel_expression() -> Handle