summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index 05999c2364..e9f0708510 100644
--- a/signal.c
+++ b/signal.c
@@ -64,7 +64,7 @@ ruby_atomic_compare_and_swap(rb_atomic_t *ptr, rb_atomic_t cmp,
#define FOREACH_SIGNAL(sig, offset) \
for (sig = siglist + (offset); sig < siglist + numberof(siglist); ++sig)
-static const int LONGEST_SIGNAME = 7; /* MIGRATE and RETRACT */
+enum { LONGEST_SIGNAME = 7 }; /* MIGRATE and RETRACT */
static const struct signals {
char signm[LONGEST_SIGNAME + 1];
int signo;