summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-31 23:11:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:08 +0900
commitb9dfd0438f79e040b40a9e5985d02b62e3daea76 (patch)
tree71dc99969068e6ed335fcb8bd735bbe2672f4fbf /src/dump.c
parentd0b5d720ace3c0289dc37f3c6e9a05391e057273 (diff)
downloadmruby-b9dfd0438f79e040b40a9e5985d02b62e3daea76.tar.gz
mruby-b9dfd0438f79e040b40a9e5985d02b62e3daea76.zip
Don't compare `int' with `size_t` (from `sizeof()`).
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index 243278103..25908260b 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -103,7 +103,7 @@ dump_float(mrb_state *mrb, uint8_t *buf, mrb_float f)
memcpy(buf, u.s, sizeof(double));
}
else {
- int i;
+ size_t i;
for (i=0; i<sizeof(double); i++) {
buf[i] = u.s[sizeof(double)-i-1];