diff options
| author | Tom Tromey <tromey@adacore.com> | 2025-02-21 13:23:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 12:23:47 -0800 |
| commit | c0a6f7acf8b630df438fc0de04028148af093cf1 (patch) | |
| tree | fd8ed9d91c2a052cb7c9e90dbdac6d7a6574ca7d /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | 123dca9b56e1359d8ec7771ea3bd0afd4b1ea6af (diff) | |
Use precise types in DWARF BestForm methods (#126309)
I noticed that DIEInteger::BestForm used a cast to char:
if ((char)Int == SignedInt)
If 'char' happens to be unsigned, this will not behave correctly. Then I
also noticed that this code assumes the size of 'short' and 'int'.
This patch changes this code to use more precise types. No functional
change should be visible on ordinary hosts.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
