From e04d7fdf9d71953c50e5c9ca650c34d0a398d25c Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Aug 2018 02:12:14 +0200 Subject: [PATCH] Use nuint instead of IntPtr for size/length parameters. --- src/Network/NWAdvertiseDescriptor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Network/NWAdvertiseDescriptor.cs b/src/Network/NWAdvertiseDescriptor.cs index 9a3f8065b0..26e7f6e1d9 100644 --- a/src/Network/NWAdvertiseDescriptor.cs +++ b/src/Network/NWAdvertiseDescriptor.cs @@ -39,14 +39,14 @@ namespace Network { } [DllImport (Constants.NetworkLibrary)] - static extern void nw_advertise_descriptor_set_txt_record (IntPtr handle, string txtRecord, IntPtr txtLen); + static extern void nw_advertise_descriptor_set_txt_record (IntPtr handle, string txtRecord, nuint txtLen); public void SetTxtRecord (string txt) { if (txt == null) throw new ArgumentNullException (nameof (txt)); var n = System.Text.Encoding.UTF8.GetByteCount (txt); - nw_advertise_descriptor_set_txt_record (GetHandle (), txt, (IntPtr) n); + nw_advertise_descriptor_set_txt_record (GetHandle (), txt, (nuint) n); } [DllImport (Constants.NetworkLibrary)]