]> granicus.if.org Git - python/commit
Fixed bug reported to Gregor Hoffleit:
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 14 Dec 1998 19:36:14 +0000 (19:36 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 14 Dec 1998 19:36:14 +0000 (19:36 +0000)
commit4c07f81d604dfebd769e0afd92ac7e8f9111f09f
tree80aeaadd57edcac4bfdf8799b59ebd77cc216fe5
parentcada2938f70ab4162b3bd2905c34819fce87f416
Fixed bug reported to Gregor Hoffleit:
> mpz.mpz('\xff') should return mpz(255).  Instead it returns
> mpz(4294967295L). Looks like the constructor doesn't work with strings
> containing characters above chr(128).
Caused by using just 'char' where 'unsigned char' should have been used.
Modules/mpzmodule.c