aboutsummaryrefslogtreecommitdiffstats
path: root/memory_view.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-04-29 14:31:05 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-05-04 14:56:55 +0200
commit68d6bd0873557c12bec6f8e0f8db622f1499d8a7 (patch)
treedd50dae6ebbf714d19e3db7272f0d9b6af86223e /memory_view.c
parent229cbeba8c928dc6ee5eb21951e00c43a6e5225c (diff)
downloadruby-68d6bd0873557c12bec6f8e0f8db622f1499d8a7.tar.gz
Fix trivial -Wundef warnings
* See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
Diffstat (limited to 'memory_view.c')
-rw-r--r--memory_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory_view.c b/memory_view.c
index ce2803717b..9609ecae3f 100644
--- a/memory_view.c
+++ b/memory_view.c
@@ -671,7 +671,7 @@ extract_item_member(const uint8_t *ptr, const rb_memory_view_item_component_t *m
return LL2NUM(val.ll);
}
else {
-#if SIZEOF_INT64_t == SIZEOF_LONG
+#if SIZEOF_INT64_T == SIZEOF_LONG
return LONG2NUM(val.i64);
#else
return LL2NUM(val.i64);
@@ -683,7 +683,7 @@ extract_item_member(const uint8_t *ptr, const rb_memory_view_item_component_t *m
return ULL2NUM(val.ull);
}
else {
-#if SIZEOF_UINT64_t == SIZEOF_LONG
+#if SIZEOF_UINT64_T == SIZEOF_LONG
return ULONG2NUM(val.u64);
#else
return ULL2NUM(val.u64);