From 892f50cbb2c255e09f927d54904500c10d9fa060 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Wed, 31 Oct 2018 23:01:02 -0400 Subject: [PATCH] libc::c_uling is diff for win/lib --- src/bsonc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsonc.rs b/src/bsonc.rs index a6de49d..179b681 100644 --- a/src/bsonc.rs +++ b/src/bsonc.rs @@ -30,7 +30,7 @@ impl Bsonc { let inner = unsafe { bindings::bson_new_from_data( buffer[..].as_ptr(), - buffer.len() as u32 + buffer.len() as libc::c_ulong ) };