diff options
Diffstat (limited to 'zenhttp/httpshared.cpp')
| -rw-r--r-- | zenhttp/httpshared.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<CbAttachmentReferenceHeader>(); *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)); |