Fixed compile issue with cuda overflow detection