Author: wyoung
Date: Thu Nov  8 03:01:35 2007
New Revision: 1831

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1831&view=rev
Log:
Previous checkin broke Date/Time operator<<()'s.  Fixed.

Modified:
    trunk/lib/datetime.cpp

Modified: trunk/lib/datetime.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/datetime.cpp?rev=1831&r1=1830&r2=1831&view=diff
==============================================================================
--- trunk/lib/datetime.cpp (original)
+++ trunk/lib/datetime.cpp Thu Nov  8 03:01:35 2007
@@ -51,8 +51,8 @@
        char fill = os.fill('0');
        ios::fmtflags flags = os.setf(ios::right);
        os              << setw(4) << d.year << '-' 
-                       << setw(2) << d.month << '-'
-                       << setw(2) << d.day;
+                       << setw(2) << static_cast<int>(d.month) << '-'
+                       << setw(2) << static_cast<int>(d.day);
        os.flags(flags);
        os.fill(fill);
        return os;
@@ -63,9 +63,9 @@
 {
        char fill = os.fill('0');
        ios::fmtflags flags = os.setf(ios::right);
-       os              << setw(2) << t.hour << ':' 
-                       << setw(2) << t.minute << ':'
-                       << setw(2) << t.second;
+       os              << setw(2) << static_cast<int>(t.hour) << ':' 
+                       << setw(2) << static_cast<int>(t.minute) << ':'
+                       << setw(2) << static_cast<int>(t.second);
        os.flags(flags);
        os.fill(fill);
        return os;


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

Reply via email to