diff --git a/http2.d b/http2.d index fb76ee2..f9f471f 100644 --- a/http2.d +++ b/http2.d @@ -4190,7 +4190,7 @@ public { if(d.length < 8) return needsMoreData(); foreach(i; 0 .. 8) { - msg.realLength |= d[0] << ((7-i) * 8); + msg.realLength |= ulong(d[0]) << ((7-i) * 8); d = d[1 .. $]; } } else {