diff --git a/samples/ffi/sample_ffi_functions.dart b/samples/ffi/sample_ffi_functions.dart index 5038ba816dd..749dc532dee 100644 --- a/samples/ffi/sample_ffi_functions.dart +++ b/samples/ffi/sample_ffi_functions.dart @@ -14,8 +14,8 @@ typedef NativeBinaryOp = Int32 Function(Int32, Int32); typedef UnaryOp = int Function(int); typedef BinaryOp = int Function(int, int); typedef GenericBinaryOp = int Function(int, T); -typedef NativeQuadOpSigned = Int64 Function(Int64, Int32, Int16, Int8); -typedef NativeQuadOpUnsigned = Uint64 Function(Uint64, Uint32, Uint16, Uint8); +typedef NativeQuadOpSigned = Int64 Function(Int8, Int16, Int32, Int64); +typedef NativeQuadOpUnsigned = Uint64 Function(Uint8, Uint16, Uint32, Uint64); typedef NativeFunc4 = IntPtr Function(IntPtr); typedef NativeDoubleUnaryOp = Double Function(Double); typedef NativeFloatUnaryOp = Float Function(Float); diff --git a/samples_2/ffi/sample_ffi_functions.dart b/samples_2/ffi/sample_ffi_functions.dart index 1bf8ecc0063..53990aceb76 100644 --- a/samples_2/ffi/sample_ffi_functions.dart +++ b/samples_2/ffi/sample_ffi_functions.dart @@ -16,8 +16,8 @@ typedef NativeBinaryOp = Int32 Function(Int32, Int32); typedef UnaryOp = int Function(int); typedef BinaryOp = int Function(int, int); typedef GenericBinaryOp = int Function(int, T); -typedef NativeQuadOpSigned = Int64 Function(Int64, Int32, Int16, Int8); -typedef NativeQuadOpUnsigned = Uint64 Function(Uint64, Uint32, Uint16, Uint8); +typedef NativeQuadOpSigned = Int64 Function(Int8, Int16, Int32, Int64); +typedef NativeQuadOpUnsigned = Uint64 Function(Uint8, Uint16, Uint32, Uint64); typedef NativeFunc4 = IntPtr Function(IntPtr); typedef NativeDoubleUnaryOp = Double Function(Double); typedef NativeFloatUnaryOp = Float Function(Float);