The variable invAngle in the VVC specification is signed, whereas the variable in the software is unsigned.