Kaydet (Commit) 05e50fd5 authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Firebird: Use explicit integer sizes.

Change-Id: I5cabe21a2d675773792f9c9d5130d8660718efe8
üst 82bafb48
...@@ -201,10 +201,10 @@ void firebird::mallocSQLVAR(XSQLDA* pSqlda) ...@@ -201,10 +201,10 @@ void firebird::mallocSQLVAR(XSQLDA* pSqlda)
pVar->sqldata = (char *)malloc(sizeof(char)*pVar->sqllen + 2); pVar->sqldata = (char *)malloc(sizeof(char)*pVar->sqllen + 2);
break; break;
case SQL_SHORT: case SQL_SHORT:
pVar->sqldata = (char *)malloc(sizeof(short)); pVar->sqldata = (char*) malloc(sizeof(sal_Int16));
break; break;
case SQL_LONG: case SQL_LONG:
pVar->sqldata = (char *)malloc(sizeof(long)); pVar->sqldata = (char*) malloc(sizeof(sal_Int32));
break; break;
case SQL_FLOAT: case SQL_FLOAT:
pVar->sqldata = (char *)malloc(sizeof(float)); pVar->sqldata = (char *)malloc(sizeof(float));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment