Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Prefer 'signed int' to bare use of 'signed' #54

Open
hany0ageeb opened this issue Aug 23, 2023 · 3 comments
Open

WARNING: Prefer 'signed int' to bare use of 'signed' #54

hany0ageeb opened this issue Aug 23, 2023 · 3 comments

Comments

@hany0ageeb
Copy link

char *handle_d_i_specifier(const conversion_specification_t *spec,
va_list argptr)
{
char *formatted_value = NULL, *temp = NULL;
signed long int d, len;
char sp = spec != NULL ? spec->conversion_specifier : 'Z';

    if (sp == 'd' || sp == 'i')
    {
            d = handle_len_mod_for_signed(spec, argptr);

//////////////////////////////////////////////////////

long int handle_len_mod_for_signed(const conversion_specification_t *spec,
va_list argptr)
{
long int value;

    if (spec->length_modifier == NULL)
            value = va_arg(argptr, int);
    else if (spec->length_modifier[0] == 'h')
            value = (short int)va_arg(argptr, int);
@anas-asimi
Copy link

did u found any solution

@anas-asimi
Copy link

just change the name of handle_len_mod_for_signed function to handle_len_mod_for_signed_int

@anas-asimi
Copy link

betty-style is stupid aF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants