From 6d39138da3cbc2ae95667bf487106ffd5ff14ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chaloupka?= Date: Tue, 15 Dec 2020 16:54:20 +0100 Subject: [PATCH] macos workaround --- source/httparsed/message.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/httparsed/message.d b/source/httparsed/message.d index 341ac28..ef13a9f 100644 --- a/source/httparsed/message.d +++ b/source/httparsed/message.d @@ -364,10 +364,12 @@ private: static if (LDC_with_SSE42) { - static byte[16] padRanges(string ranges) + // CT function to prepare input for SIMD vector enum + static byte[16] padRanges()(string ranges) { byte[16] res; - res[0..ranges.length] = cast(byte[])ranges[]; + // res[0..ranges.length] = cast(byte[])ranges[]; - broken on macOS betterC tests + foreach (i, c; ranges) res[i] = cast(byte)c; return res; }