Warning C26451: Arithmetic overflow

前端 未结 4 1941
庸人自扰
庸人自扰 2021-01-01 20:35

How do I solve these warnings?

// midiNote is a double as it is used in floating point equation
// v is int because t         


        
4条回答
  •  半阙折子戏
    2021-01-01 21:16

    I resolved the problem by looking at some Microsoft Docs, but you could also change your variable into a long long type(over the top, I know). It got rid of the errors for me. Hopefully they address this soon.

提交回复
热议问题