From 70fa0fe82d4a5da340c009917babf3a08c30da42 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Thu, 15 Oct 2026 12:37:42 -0700 Subject: [PATCH] fix(sqlite): use std::memcpy for MSVC compat in btree decoder __builtin_memcpy is GCC/Clang-only and breaks the Windows (MSVC) build with C3861. std::memcpy is portable ( already included). Fixes Windows build failure in LadybugDB/ladybug run 38760029672. --- sqlite/src/cdc/btree_page_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite/src/cdc/btree_page_decoder.cpp b/sqlite/src/cdc/btree_page_decoder.cpp index 969fffac..93290fa0 100644 --- a/sqlite/src/cdc/btree_page_decoder.cpp +++ b/sqlite/src/cdc/btree_page_decoder.cpp @@ -58,7 +58,7 @@ bool decodeSerialValue(uint64_t serial, const uint8_t*& p, size_t& remaining, ui } double d; static_assert(sizeof(d) == sizeof(bits)); - __builtin_memcpy(&d, &bits, 8); + std::memcpy(&d, &bits, 8); out.type = SqliteValue::Type::Real; out.realVal = d; p += 8;