[Libreoffice-commits] core.git: connectivity/source

Andrzej J.R. Hunt andrzej at ahunt.org
Sun Oct 27 12:26:38 PDT 2013


 connectivity/source/drivers/firebird/Util.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 05e50fd54bc94730c3129e71f967cd74324b6851
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date:   Sun Oct 27 19:20:42 2013 +0000

    Firebird: Use explicit integer sizes.
    
    Change-Id: I5cabe21a2d675773792f9c9d5130d8660718efe8

diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx
index 0c7018c..74eb00c 100644
--- a/connectivity/source/drivers/firebird/Util.cxx
+++ b/connectivity/source/drivers/firebird/Util.cxx
@@ -201,10 +201,10 @@ void firebird::mallocSQLVAR(XSQLDA* pSqlda)
             pVar->sqldata = (char *)malloc(sizeof(char)*pVar->sqllen + 2);
             break;
         case SQL_SHORT:
-            pVar->sqldata = (char *)malloc(sizeof(short));
+            pVar->sqldata = (char*) malloc(sizeof(sal_Int16));
             break;
         case SQL_LONG:
-            pVar->sqldata = (char *)malloc(sizeof(long));
+            pVar->sqldata = (char*) malloc(sizeof(sal_Int32));
             break;
         case SQL_FLOAT:
             pVar->sqldata = (char *)malloc(sizeof(float));


More information about the Libreoffice-commits mailing list