Skip to content

Commit

Permalink
Cast no-side-effect function to void when source is immutable array.
Browse files Browse the repository at this point in the history
  • Loading branch information
schveiguy committed Nov 27, 2018
1 parent 8231356 commit 6359c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/iopipe/zip.d
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private struct UnzipSrc(Chain)
{
if(chain.window.length < 4096) // don't overallocate
{
chain.extend(0);
cast(void)chain.extend(0);
setupInput = true;
}
if(setupInput)
Expand Down

0 comments on commit 6359c66

Please sign in to comment.