summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-04 09:12:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-04 09:12:34 +0900
commit3c57c087ec4ac9f2d7b9f4111a667efe42d30cfb (patch)
tree14ffc99a773d416a3415f10cf57ed8bb7612e118 /misc
parent9f3240d4f4439e253d230f8c06d9923c76a68c6d (diff)
lldb_cruby.py: fix non-flonum float inspection [ci skip]
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 898cb2fa68..67810d5417 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -350,7 +350,7 @@ def lldb_inspect(debugger, target, result, val):
elif flType == RUBY_T_FLOAT:
tRFloat = target.FindFirstType("struct RFloat").GetPointerType()
val = val.Cast(tRFloat)
- append_command_output(debugger, "p *(double *)%0#x" % val.GetValueForExpressionPath("->float_value").GetAddress(), result)
+ print(val.GetValueForExpressionPath("->float_value"), file=result)
elif flType == RUBY_T_RATIONAL:
tRRational = target.FindFirstType("struct RRational").GetPointerType()
val = val.Cast(tRRational)