You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/03/24 08:05:31 UTC

[GitHub] [tvm] rafzi opened a new pull request #7733: [crt] fix shift out of type bounds

rafzi opened a new pull request #7733:
URL: https://github.com/apache/tvm/pull/7733


   When running with "-fsanitize=undefined" I got the following error:
   
       tvm/src/runtime/crt/common/crt_runtime_api.c:213:32: runtime error: left shift of 32770 by 16 places cannot be represented in type 'int'
   
   The expression "module_index | 0x8000" is of type "int" and needs to be casted to unsigned before the shift.
   
   @areusch 


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] areusch commented on pull request #7733: [crt] fix shift out of type bounds

Posted by GitBox <gi...@apache.org>.
areusch commented on pull request #7733:
URL: https://github.com/apache/tvm/pull/7733#issuecomment-806059563


   thanks @rafzi, this change looks good to me. can you retrigger the CI by adding an empty commit? looks like it got stuck on task_rust.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen commented on pull request #7733: [crt] fix shift out of type bounds

Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #7733:
URL: https://github.com/apache/tvm/pull/7733#issuecomment-811024199


   Thanks @rafzi @areusch !


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen merged pull request #7733: [crt] fix shift out of type bounds

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #7733:
URL: https://github.com/apache/tvm/pull/7733


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org