summaryrefslogtreecommitdiffhomepage
path: root/src/codedump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 16:53:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 16:54:39 +0900
commite55abd239091f7353691c6635d7108391d7ef389 (patch)
tree1936f3a18d99051da979527386235b8b3094812f /src/codedump.c
parent36e3c4404af102411b6949e672aa6b73768945d5 (diff)
downloadmruby-e55abd239091f7353691c6635d7108391d7ef389.tar.gz
mruby-e55abd239091f7353691c6635d7108391d7ef389.zip
Fix compiler errors from `MRB_NO_FLOAT`; #5185
Also added `no-float.rb` target in `build_config`.
Diffstat (limited to 'src/codedump.c')
-rw-r--r--src/codedump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codedump.c b/src/codedump.c
index fd376c20b..4f793b753 100644
--- a/src/codedump.c
+++ b/src/codedump.c
@@ -141,7 +141,9 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
op_loadl:
switch (irep->pool[b].tt) {
case IREP_TT_FLOAT:
+#ifndef MRB_NO_FLOAT
printf("OP_LOADL\tR%d\tL(%d)\t; %f", a, b, (double)irep->pool[b].u.f);
+#endif
break;
case IREP_TT_INT32:
printf("OP_LOADL\tR%d\tL(%d)\t; %" PRId32, a, b, irep->pool[b].u.i32);