A trivial fix is to add a cast.