Hi,
On Fri, Sep 06, 2019 at 10:09:07PM -0400, Reece R. Pollack wrote:
> >-const float posYfactor = (float)(windowsPos.y + y *
> >4.0f) / (float)m_windowSize.y;
> >+const float posYfactor = windowsPos.y + y * 4.0f /
> >(float)m_windowSize.y;
> These are
On 9/6/19 6:36 PM, Simon Richter wrote:
-const float posYfactor = (float)(windowsPos.y + y * 4.0f)
/ (float)m_windowSize.y;
+const float posYfactor = windowsPos.y + y * 4.0f /
(float)m_windowSize.y;
These are mathematically different expressions. You
These are also reported by gcc -Wuseless-casts as having the same source
and destination type, so the new code is equivalent to the old, but it is
less immediately obvious that this interpretation was originally intended.
---
.../3d_render_raytracing/c3d_render_raytracing.cpp| 2 +-
3 matches
Mail list logo