morningman commented on pull request #7149:
URL: https://github.com/apache/incubator-doris/pull/7149#issuecomment-979622508
```
../src/util/tuple_row_zorder_compare.cpp:54:83: required from here
../src/util/tuple_row_zorder_compare.cpp:168:41: warning: left shift count
>= width of type [-Wshift-count-overflow]
168 | return static_cast<U>(~tmp) << std::max((sizeof(U) -
sizeof(T)) * 8, (uint64_t) 0);
|
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/util/tuple_row_zorder_compare.cpp:171:41: warning: left shift count
>= width of type [-Wshift-count-overflow]
171 | return (static_cast<U>(tmp) << std::max((sizeof(U) -
sizeof(T)) * 8, (uint64_t) 0)) ^
|
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]