aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-06 13:53:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-06 16:33:44 +0900
commit232e401b0f19cb5191ae7a0ec107fc9bf10c8145 (patch)
tree05db72859d7bf26e47af3992be4250af68e35523 /pack.c
parentb459bca0a62931143420db30e9ba5540cde48372 (diff)
downloadruby-232e401b0f19cb5191ae7a0ec107fc9bf10c8145.tar.gz
Reuse `natstr` if it equals `endstr`
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index d5b78b6060..4fdaf7fd89 100644
--- a/pack.c
+++ b/pack.c
@@ -36,10 +36,11 @@
*/
#ifdef HAVE_TRUE_LONG_LONG
static const char natstr[] = "sSiIlLqQjJ";
+# define endstr natstr
#else
static const char natstr[] = "sSiIlLjJ";
-#endif
static const char endstr[] = "sSiIlLqQjJ";
+#endif
#ifdef HAVE_TRUE_LONG_LONG
/* It is intentional to use long long instead of LONG_LONG. */