mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#1071] always cast to target type
This commit is contained in:
committed by
Tomek Mrugalski
parent
c3f7706558
commit
9bcc1e819a
@@ -189,11 +189,7 @@ public:
|
||||
std::vector<my_bools>& error) {
|
||||
for (size_t i = 0; i < error.size(); ++i) {
|
||||
error[i] = MLM_FALSE;
|
||||
#ifdef HAVE_MYSQL_MY_BOOL
|
||||
bind[i].error = reinterpret_cast<char*>(&error[i]);
|
||||
#else
|
||||
bind[i].error = reinterpret_cast<bool*>(&error[i]);
|
||||
#endif
|
||||
bind[i].error = reinterpret_cast<my_bool*>(&error[i]);
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -355,11 +355,8 @@ public:
|
||||
size_t count) {
|
||||
for (size_t i = 0; i < count; ++i) {
|
||||
error[i] = MLM_FALSE;
|
||||
#ifdef HAVE_MYSQL_MY_BOOL
|
||||
bind[i].error = reinterpret_cast<char*>(&error[i]);
|
||||
#else
|
||||
bind[i].error = &error[i];
|
||||
#endif
|
||||
bind[i].error = reinterpret_cast<my_bool*>(&error[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user