Skip to content

Commit 5becab8

Browse files
committed
Expand keyword bits for Fixnum width
1 parent b49ae45 commit 5becab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ args_setup_kw_parameters_lookup(const ID key, VALUE *ptr, const VALUE *const pas
318318
return FALSE;
319319
}
320320

321-
#define KW_SPECIFIED_BITS_MAX (32-1) /* TODO: 32 -> Fixnum's max bits */
321+
#define KW_SPECIFIED_BITS_MAX ((SIZEOF_VALUE * CHAR_BIT) - 1)
322322

323323
static void
324324
args_setup_kw_parameters(rb_execution_context_t *const ec, const rb_iseq_t *const iseq, const rb_callable_method_entry_t *cme,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy