This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]