From 46d3996ac44abe5fac0de5d1510d1d733ba50e7c Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 8 Sep 2011 09:23:07 +0200 Subject: Correct void* casts --- odb/oracle/statement.cxx | 10 +++++----- 1 file 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 (context)); + bind& b (*static_cast (context)); b.ind = -1; *buffer = 0; @@ -232,7 +232,7 @@ namespace odb { typedef insert_statement::id_bind_type bind; - bind& b (*reinterpret_cast (context)); + bind& b (*static_cast (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 (&b.ind); + *ind = &b.ind; *rcode = 0; return OCI_CONTINUE; @@ -292,9 +292,9 @@ namespace odb r = OCIBindDynamic (h, err, - reinterpret_cast (&id_bind_), + &id_bind_, &returning_in, - reinterpret_cast (&id_bind_), + &id_bind_, &returning_out); if (r == OCI_ERROR || r == OCI_INVALID_HANDLE) -- cgit v1.1