aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-09-08 09:23:07 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-09-08 09:23:07 +0200
commit46d3996ac44abe5fac0de5d1510d1d733ba50e7c (patch)
tree6adab7e2440efcf77ee93237536a682f6af1a414
parentd16db7299b24feab97f40750ddead498825de48b (diff)
Correct void* casts
-rw-r--r--odb/oracle/statement.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index d61e172..9398820 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -208,7 +208,7 @@ namespace odb
{
typedef insert_statement::id_bind_type bind;
- bind& b (*reinterpret_cast<bind*> (context));
+ bind& b (*static_cast<bind*> (context));
b.ind = -1;
*buffer = 0;
@@ -232,7 +232,7 @@ namespace odb
{
typedef insert_statement::id_bind_type bind;
- bind& b (*reinterpret_cast<bind*> (context));
+ bind& b (*static_cast<bind*> (context));
#if (OCI_MAJOR_VERSION == 11 && OCI_MINOR_VERSION >=2) \
|| OCI_MAJOR_VERSION > 11
@@ -243,7 +243,7 @@ namespace odb
**len = sizeof (unsigned int);
#endif
- *ind = reinterpret_cast<void*> (&b.ind);
+ *ind = &b.ind;
*rcode = 0;
return OCI_CONTINUE;
@@ -292,9 +292,9 @@ namespace odb
r = OCIBindDynamic (h,
err,
- reinterpret_cast<void*> (&id_bind_),
+ &id_bind_,
&returning_in,
- reinterpret_cast<void*> (&id_bind_),
+ &id_bind_,
&returning_out);
if (r == OCI_ERROR || r == OCI_INVALID_HANDLE)