Skip to content

Commit

Permalink
macos workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaloupka committed Dec 15, 2020
1 parent 8b5b90b commit 6d39138
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/httparsed/message.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6d39138

Please sign in to comment.