You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Another try to cope with warnings under gcc 8.2.
This commit is contained in:
@ -1139,7 +1139,9 @@ inline int64_t TreeNode::getDatetimeIntVal()
|
||||
dataconvert::Time tt;
|
||||
int day = 0;
|
||||
|
||||
memcpy(&tt, &fResult.intVal, 8);
|
||||
void *ttp = static_cast<void*>(&tt);
|
||||
|
||||
memcpy(ttp, &fResult.intVal, 8);
|
||||
|
||||
// Note, this should probably be current date +/- time
|
||||
if ((tt.hour > 23) && (!tt.is_neg))
|
||||
@ -1169,7 +1171,7 @@ inline int64_t TreeNode::getTimeIntVal()
|
||||
{
|
||||
dataconvert::DateTime dt;
|
||||
|
||||
memcpy(&dt, &fResult.intVal, 8);
|
||||
memcpy((int64_t*)(&dt), &fResult.intVal, 8);
|
||||
dataconvert::Time tt(0, dt.hour, dt.minute, dt.second, dt.msecond, false);
|
||||
memcpy(&fResult.intVal, &tt, 8);
|
||||
return fResult.intVal;
|
||||
|
Reference in New Issue
Block a user