[Ocipl-commits] SF.net SVN: ocipl: [49] trunk/ocipl/ocipl.cpp
Brought to you by:
martinfuchs
|
From: <mar...@us...> - 2008-05-30 08:25:37
|
Revision: 49
http://ocipl.svn.sourceforge.net/ocipl/?rev=49&view=rev
Author: martinfuchs
Date: 2008-05-30 01:25:42 -0700 (Fri, 30 May 2008)
Log Message:
-----------
fix array allocation for float and double values
Modified Paths:
--------------
trunk/ocipl/ocipl.cpp
Modified: trunk/ocipl/ocipl.cpp
===================================================================
--- trunk/ocipl/ocipl.cpp 2008-05-30 08:24:46 UTC (rev 48)
+++ trunk/ocipl/ocipl.cpp 2008-05-30 08:25:42 UTC (rev 49)
@@ -1693,11 +1693,11 @@
#ifdef SQLT_BFLOAT
case OCI_TYPECODE_BFLOAT:
- _pfloat = new float(size);
+ _pfloat = new float[size];
break;
case OCI_TYPECODE_BDOUBLE:
- _pdouble = new double(size);
+ _pdouble = new double[size];
break;
#endif
@@ -1755,11 +1755,11 @@
#ifdef SQLT_BFLOAT
case OCI_TYPECODE_BFLOAT:
- _pfloat = new float(*other._pfloat);
+ _pfloat = new float[*other._pfloat];
break;
case OCI_TYPECODE_BDOUBLE:
- _pdouble = new double(*other._pfloat);
+ _pdouble = new double[*other._pfloat];
break;
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|