occt: master 4e1b5fcb

Author Committer Branch Timestamp Parent
ddzama smoskvin master 2022-03-29 16:32:46 master 9416ba5f
Affected Issues  0032903: Coding Rules - eliminate MSVC warning C26451 on VS2019/C++20
Changeset 0032903: Coding Rules - eliminate MSVC warning C26451 on VS2019/C++20

Put explicit type casting to avoid:
Warning C26451 Arithmetic overflow: Using operator '-' on a 4 byte
value and then casting the result to a 8 byte value.
Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
mod - src/AIS/AIS_ViewController.cxx Diff File
mod - src/Graphic3d/Graphic3d_ArrayOfPrimitives.hxx Diff File
mod - src/Message/Message_ProgressScope.hxx Diff File
mod - src/Standard/Standard_Real.hxx Diff File