summaryrefslogtreecommitdiff
path: root/cpp/demo/Database/Oracle/occi/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Database/Oracle/occi/Util.cpp')
-rw-r--r--cpp/demo/Database/Oracle/occi/Util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/demo/Database/Oracle/occi/Util.cpp b/cpp/demo/Database/Oracle/occi/Util.cpp
index 95364f25842..ef9645e993f 100644
--- a/cpp/demo/Database/Oracle/occi/Util.cpp
+++ b/cpp/demo/Database/Oracle/occi/Util.cpp
@@ -129,7 +129,7 @@ decodeRef(const string& str, Environment* env, Connection* con)
sword status = OCIRefFromHex(env->getOCIEnvironment(), error,
con->getOCIServiceContext(),
- reinterpret_cast<const OraText*>(str.c_str()), str.length(),
+ reinterpret_cast<const OraText*>(str.c_str()), static_cast<ub4>(str.length()),
&ref);