From 023805232fb2460ad10aeccec1c81753ccf5e5a2 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 6 Jun 2025 22:24:52 -0400 Subject: [PATCH] fix warnings in C stubs --- src/ws/tiny_httpd_ws_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/tiny_httpd_ws_stubs.c b/src/ws/tiny_httpd_ws_stubs.c index 0813b527..bcc0e59a 100644 --- a/src/ws/tiny_httpd_ws_stubs.c +++ b/src/ws/tiny_httpd_ws_stubs.c @@ -8,7 +8,7 @@ CAMLprim value tiny_httpd_ws_apply_masking(value _mask_key, value _mask_offset, CAMLparam5(_mask_key, _mask_offset, _buf, _offset, _len); char const *mask_key = String_val(_mask_key); - char *buf = Bytes_val(_buf); + unsigned char *buf = Bytes_val(_buf); intnat mask_offset = Int_val(_mask_offset); intnat offset = Int_val(_offset); intnat len = Int_val(_len);