[libcxx-commits] [libcxx] [libc++][test] Make `deallocate_size.pass.cpp` MSVC-STL-friendly (PR #165162)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 27 19:47:01 PDT 2025
================
@@ -12,12 +12,13 @@
#include <string>
#include <cassert>
+#include <cstddef>
#include <cstdint>
#include <type_traits>
#include "test_macros.h"
-static int allocated_;
+static std::ptrdiff_t allocated_;
----------------
frederick-vs-ja wrote:
I guess it was intended to use a signed integer type to allow negative valuee.
https://github.com/llvm/llvm-project/pull/165162
More information about the libcxx-commits
mailing list