mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 23:12:56 +00:00
HackStudio: Fix debugger preview for char variables
This commit is contained in:
parent
d295095993
commit
cffc0a4f45
Notes:
sideshowbarker
2024-07-18 20:27:18 +09:00
Author: https://github.com/FalseHonesty
Commit: cffc0a4f45
Pull-request: https://github.com/SerenityOS/serenity/pull/6258
Reviewed-by: https://github.com/itamar8910 ✅
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ static String variable_value_as_string(const Debug::DebugInfo::VariableInfo& var
|
|||
if (variable.type_name == "char") {
|
||||
auto value = Debugger::the().session()->peek((u32*)variable_address);
|
||||
VERIFY(value.has_value());
|
||||
return String::formatted("'{0:c}' ({0:d})", value.value());
|
||||
return String::formatted("'{0:c}'", (char)value.value());
|
||||
}
|
||||
|
||||
if (variable.type_name == "bool") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue