|
Patch to fix char signedness issue on ppc: msg#00066db.mysql.c++
Hello On Linux/ppc, gcc uses unsigned char's by default. query.cpp constructs an object of SQLParseElement and gives it a value of -1 for the "char" parameter (n). Later this value is compared to -1, which will be 255 when using unsigned chars. The result is a wrongly thrown exception. The attached patch changes the type to "short int" where the number is used. Signed-off-by: Michael Hanselmann <mysql@xxxxxxxxx> Greets, Michael -- Gentoo Linux developer, http://hansmi.ch/, http://forkbomb.ch/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: how to install mysql++: 00066, Ooi Wai Weiy |
|---|---|
| Next by Date: | Re: Patch to fix char signedness issue on ppc: 00066, Ovidiu Bivolaru |
| Previous by Thread: | how to install mysql++i: 00066, Ooi Wai Weiy |
| Next by Thread: | Re: Patch to fix char signedness issue on ppc: 00066, Ovidiu Bivolaru |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |