From 2110ab83eb27c97f21f2d8519c2c384f6dff2883 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 10 Jun 2022 16:57:34 +0200 Subject: fixed Linux build issue --- zenhttp/httpshared.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenhttp/httpshared.cpp') diff --git a/zenhttp/httpshared.cpp b/zenhttp/httpshared.cpp index 8149adbaf..f4dbb6240 100644 --- a/zenhttp/httpshared.cpp +++ b/zenhttp/httpshared.cpp @@ -80,14 +80,14 @@ FormatPackageMessage(const CbPackage& Data, FormatFlags Flags) CbAttachmentReferenceHeader& LocalRef, const IoHash& AttachmentHash, bool IsCompressed) { - IoBuffer RefBuffer = IoBuffer(sizeof CbAttachmentReferenceHeader + Path8.size()); + IoBuffer RefBuffer(sizeof(CbAttachmentReferenceHeader) + Path8.size()); CbAttachmentReferenceHeader* RefHdr = RefBuffer.MutableData(); *RefHdr++ = LocalRef; memcpy(RefHdr, Path8.data(), Path8.size()); *AttachmentInfo++ = {.PayloadSize = RefBuffer.GetSize(), - .Flags = (IsCompressed ? CbAttachmentEntry::kIsCompressed : 0u) | CbAttachmentEntry::kIsLocalRef, + .Flags = (IsCompressed ? uint32_t(CbAttachmentEntry::kIsCompressed) : 0u) | CbAttachmentEntry::kIsLocalRef, .AttachmentHash = AttachmentHash}; ResponseBuffers.push_back(std::move(RefBuffer)); -- cgit v1.2.3