Commit 9bcc1e81 authored by Razvan Becheriu's avatar Razvan Becheriu Committed by Tomek Mrugalski

[#1071] always cast to target type

parent c3f77065
...@@ -189,11 +189,7 @@ public: ...@@ -189,11 +189,7 @@ public:
std::vector<my_bools>& error) { std::vector<my_bools>& error) {
for (size_t i = 0; i < error.size(); ++i) { for (size_t i = 0; i < error.size(); ++i) {
error[i] = MLM_FALSE; error[i] = MLM_FALSE;
#ifdef HAVE_MYSQL_MY_BOOL bind[i].error = reinterpret_cast<my_bool*>(&error[i]);
bind[i].error = reinterpret_cast<char*>(&error[i]);
#else
bind[i].error = reinterpret_cast<bool*>(&error[i]);
#endif
} }
}; };
......
...@@ -355,11 +355,8 @@ public: ...@@ -355,11 +355,8 @@ public:
size_t count) { size_t count) {
for (size_t i = 0; i < count; ++i) { for (size_t i = 0; i < count; ++i) {
error[i] = MLM_FALSE; error[i] = MLM_FALSE;
#ifdef HAVE_MYSQL_MY_BOOL
bind[i].error = reinterpret_cast<char*>(&error[i]);
#else
bind[i].error = &error[i];
#endif #endif
bind[i].error = reinterpret_cast<my_bool*>(&error[i]);
} }
} }
......
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