fjpanag commented on issue #7274:
URL: 
https://github.com/apache/incubator-nuttx/issues/7274#issuecomment-1273630410

   > Ok, anyway @no1wudi can take a look tomorrow.
   
   Sure! Just adding my findings, in the hope that I will help.
   
   
   The offending line seems to be:
   ```
   return ((int64_t)ulong_val) << extra_bits >> extra_bits;
   ```
   
   I printed the value of `extra_bits` and it is 0 at the time of the problem.
   
   So the following is UB?
   ```
   return ((int64_t)ulong_val) << 0 >> 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]

Reply via email to