Skip to content

Commit

Permalink
locale.c: Don't need a U32
Browse files Browse the repository at this point in the history
Previous commits have caused only the lowest two bits in this variable
to be used; don't need anything as explicit as a U32.
  • Loading branch information
khwilliamson committed Nov 22, 2023
1 parent 4bed297 commit 402799a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -4408,7 +4408,7 @@ S |HV * |my_localeconv |const int item
S |void |populate_hash_from_localeconv \
|NN HV *hv \
|NN const char *locale \
|const U32 which_mask \
|const PERL_UINT_FAST8_T which_mask \
|NN const lconv_offset_t *strings[2] \
|NULLOK const lconv_offset_t *integers
# endif
Expand Down
4 changes: 2 additions & 2 deletions locale.c
Expand Up @@ -5465,7 +5465,7 @@ S_my_localeconv(pTHX_ const int item)
/* This is a mask, with one bit to tell S_populate_hash_from_localeconv to
* populate the NUMERIC items; another bit for the MONETARY ones. This way
* it can choose which (or both) to populate from */
U32 index_bits = 0;
PERL_UINT_FAST8_T index_bits = 0;

/* This converts from the category offset to its bit position in the above
* mask. */
Expand Down Expand Up @@ -5733,7 +5733,7 @@ S_populate_hash_from_localeconv(pTHX_ HV * hv,

/* bit mask of which categories to
* populate */
const U32 which_mask,
const PERL_UINT_FAST8_T which_mask,

/* strings[0] points to the numeric
* string fields; [1] to the monetary */
Expand Down
2 changes: 1 addition & 1 deletion proto.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 402799a

Please sign in to comment.