This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [patch] SH: memset fix
Ulrich Drepper <drepper@redhat.com> wrote:
>> It doesn't catch the problem yet. In the original example
>> memset(ptr, '\xda', 20), the second argument is promoted to a
>> negative integer,
>
> The third outer loop uses 130 as the byte value, which should meet the
> requirement.
130 is passed as 0x82 in the test. OTOH '\xda' is passed as 0xffffffda
in the example.
Regards,
kaz