diff options
| author | Stefan Boberg <[email protected]> | 2022-06-10 16:57:34 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2022-06-10 16:57:34 +0200 |
| commit | 2110ab83eb27c97f21f2d8519c2c384f6dff2883 (patch) | |
| tree | d2c0434d98735ec93307f9a8ee6131796a7cb0c4 /zenhttp/httpshared.cpp | |
| parent | Update CODING.md (diff) | |
| download | zen-2110ab83eb27c97f21f2d8519c2c384f6dff2883.tar.xz zen-2110ab83eb27c97f21f2d8519c2c384f6dff2883.zip | |
fixed Linux build issue
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)); |