Skip to content

Commit

Permalink
fixed crash on 64-bit platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Nov 15, 2012
1 parent d8ad4a0 commit 8ad41fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/appleseed/foundation/math/ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
// appleseed.foundation headers.
#include "foundation/math/vector.h"
#include "foundation/platform/compiler.h"
#include "foundation/platform/types.h"

// Standard headers.
#include <cassert>
Expand Down Expand Up @@ -124,7 +125,7 @@ class RayInfo
// Sign of the ray direction (for the i'th component, the sign value
// is 1 if the component is positive or null, and 0 if the component
// is strictly negative).
Vector<size_t, N> m_sgn_dir;
Vector<uint32, N> m_sgn_dir;

// Constructors.
RayInfo(); // leave all fields uninitialized
Expand Down Expand Up @@ -152,7 +153,7 @@ class RayInfo<double, 3>
// Sign of the ray direction (for the i'th component, the sign value
// is 1 if the component is positive or null, and 0 if the component
// is strictly negative).
SSE_ALIGN Vector<size_t, 4> m_sgn_dir;
SSE_ALIGN Vector<uint32, 4> m_sgn_dir;

// Constructors.
RayInfo(); // leave all fields uninitialized
Expand Down

0 comments on commit 8ad41fb

Please sign in to comment.