[前][次][番号順一覧][スレッド一覧]

ruby-changes:66866

From: Nobuyoshi <ko1@a...>
Date: Thu, 22 Jul 2021 15:41:54 +0900 (JST)
Subject: [ruby-changes:66866] 75f60e5a46 (master): Sort out quad_t related macros

https://git.ruby-lang.org/ruby.git/commit/?id=75f60e5a46

From 75f60e5a460b96b3130fbc941ddcce86df0fc2da Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 22 Jul 2021 11:25:48 +0900
Subject: Sort out quad_t related macros

---
 sprintf.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/sprintf.c b/sprintf.c
index 62b7503..f54336f 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -974,14 +974,12 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec) https://github.com/ruby/ruby/blob/trunk/sprintf.c#L974
 #undef ferror
 #undef clearerr
 #undef fileno
-#if SIZEOF_LONG < SIZEOF_VOIDP
-# if  SIZEOF_LONG_LONG == SIZEOF_VOIDP
-#  define _HAVE_SANE_QUAD_
-#  define _HAVE_LLP64_
-#  define quad_t LONG_LONG
-#  define u_quad_t unsigned LONG_LONG
+#if SIZEOF_LONG < SIZEOF_LONG_LONG
+# if SIZEOF_LONG_LONG == SIZEOF_VOIDP
+/* actually this doesn't mean a pointer is strictly 64bit, but just
+ * quad_t size */
+#   define _HAVE_LLP64_
 # endif
-#elif SIZEOF_LONG != SIZEOF_LONG_LONG && SIZEOF_LONG_LONG == 8
 # define _HAVE_SANE_QUAD_
 # define quad_t LONG_LONG
 # define u_quad_t unsigned LONG_LONG
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]