diff options
| author | A. Jiang <de34@live.cn> | 2025-10-31 10:07:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 10:07:38 +0800 |
| commit | 73b092ff3398321b91f913c66bf9fe3bbf4d097a (patch) | |
| tree | 4f513aa6a03b238610b79eb68635d751333f8ef5 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | f8b5f86cd9c1a6b10c7cf161075eae5b32e18126 (diff) | |
| download | llvm-73b092ff3398321b91f913c66bf9fe3bbf4d097a.zip llvm-73b092ff3398321b91f913c66bf9fe3bbf4d097a.tar.gz llvm-73b092ff3398321b91f913c66bf9fe3bbf4d097a.tar.bz2 | |
[libc++][test] Make `deallocate_size.pass.cpp` MSVC-friendly (#165162)
This patch contains several changes to `deallocate_size.pass.cpp`:
1. `static_cast`-ing some parameters to `size_t` to avoid narrowing.
2. Changing the type of loop variable `i` to `unsigned int` avoid
signedness mismatch with the constructor parameter.
3. Separately counting allocations and deallocations in variables
`allocated_` and `deallocated_`, and changing their type to `uint64_t`.
4. Avoiding `assert`-ing count of allocations when a `basic_string` is
allocated, just `assert`-ing after destruction instead.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
