]> git.stg.codes - stg.git/commitdiff
Fix unsigned types while working with IBPP
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 10 Sep 2011 16:32:21 +0000 (19:32 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 10 Sep 2011 16:32:21 +0000 (19:32 +0300)
projects/stargazer/plugins/store/firebird/firebird_store_services.cpp

index 7d7b3d53305989c66c047ab5ae64553775be1187..f7167acbdb7fe9211d6156b7dfdaf1c9c63d0fd1 100644 (file)
@@ -80,7 +80,7 @@ try
          where name = ?");
     st->Set(1, sc.comment);
     st->Set(2, sc.cost);
          where name = ?");
     st->Set(1, sc.comment);
     st->Set(2, sc.cost);
-    st->Set(3, sc.payDay);
+    st->Set(3, static_cast<long>(sc.payDay));
     st->Set(4, sc.name);
     st->Execute();
     tr->Commit();
     st->Set(4, sc.name);
     st->Execute();
     tr->Commit();
@@ -115,7 +115,9 @@ try
         {
         st->Get(3, sc->comment);
         st->Get(4, sc->cost);
         {
         st->Get(3, sc->comment);
         st->Get(4, sc->cost);
-        st->Get(5, sc->payDay);
+        long pd;
+        st->Get(5, pd);
+        sc->payDay = pd;
         }
     else
         {
         }
     else
         {