Author: wyoung
Date: Wed Dec 20 19:35:23 2006
New Revision: 1337

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1337&view=rev
Log:
Applied patch by Michael Hanselmann <[EMAIL PROTECTED]> for explicit
signedness in SQLQueryParms, required due to GCC details on PowerPC.

Modified:
    trunk/lib/qparms.h
    trunk/lib/query.cpp

Modified: trunk/lib/qparms.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/qparms.h?rev=1337&r1=1336&r2=1337&view=diff
==============================================================================
--- trunk/lib/qparms.h (original)
+++ trunk/lib/qparms.h Wed Dec 20 19:35:23 2006
@@ -232,7 +232,7 @@
        /// \param b the 'before' value
        /// \param o the 'option' value
        /// \param n the 'num' value
-       SQLParseElement(std::string b, char o, char n) :
+       SQLParseElement(std::string b, char o, signed char n) :
        before(b),
        option(o),
        num(n)
@@ -241,7 +241,7 @@
        
        std::string before;             ///< string inserted before the 
parameter
        char option;                    ///< the parameter option, or blank if 
none
-       char num;                               ///< the parameter position to 
use
+       signed char num;                ///< the parameter position to use
 };
 
 } // end namespace mysqlpp

Modified: trunk/lib/query.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=1337&r1=1336&r2=1337&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Wed Dec 20 19:35:23 2006
@@ -234,7 +234,7 @@
                                else {
                                        num[1] = 0;
                                }
-                               short int n = atoi(num);
+                               signed char n = atoi(num);
 
                                // Look for option character following position 
value.
                                char option = ' ';
@@ -269,7 +269,7 @@
                                }
 
                                // Finished parsing parameter; save it.
-                               parse_elems_.push_back(SQLParseElement(str, 
option, char(n)));
+                               parse_elems_.push_back(SQLParseElement(str, 
option, n));
                                str = "";
                                name = "";
                        }


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to