From 102e2bf7964291ebef2e736c2b84f9e56e3705cf Mon Sep 17 00:00:00 2001 From: Gavrie Philipson Date: Wed, 28 Jul 2021 14:57:56 +0300 Subject: [PATCH] Fix #171: use platform independent c_char type --- src/context/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/mod.rs b/src/context/mod.rs index 79e471d0..6cce8b63 100644 --- a/src/context/mod.rs +++ b/src/context/mod.rs @@ -172,7 +172,7 @@ impl Context { Ok(RedisValue::StringBuffer(s)) => unsafe { raw::RedisModule_ReplyWithStringBuffer.unwrap()( self.ctx, - s.as_ptr() as *const i8, + s.as_ptr() as *const c_char, s.len() as usize, ) .into()