[patch] SH: memset fix
Kaz Kojima
kkojima@rr.iij4u.or.jp
Mon Jul 25 02:08:00 GMT 2005
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
More information about the Libc-alpha
mailing list