2001-09-05 16:56:00 +02:00
|
|
|
This patch fixes assumptions made in different parts of the code
|
|
|
|
regarding the sizeof long and int. The original code appears to use them
|
|
|
|
interchangeably, even though it expects them to be 32 bit wide.
|
2004-05-23 21:08:26 +02:00
|
|
|
--- src/cmsmtrx.c Tue Feb 13 12:08:06 2001
|
|
|
|
+++ src/cmsmtrx.c Wed Sep 5 10:28:02 2001
|
2001-09-05 16:56:00 +02:00
|
|
|
@@ -705,6 +705,6 @@
|
|
|
|
void VEC3scaleAndCut(LPWVEC3 r, LPVEC3 v, double d)
|
|
|
|
{
|
2002-01-05 11:53:21 +01:00
|
|
|
- r -> n[VX] = (int) floor(v -> n[VX] * d + .5);
|
|
|
|
- r -> n[VY] = (int) floor(v -> n[VY] * d + .5);
|
|
|
|
- r -> n[VZ] = (int) floor(v -> n[VZ] * d + .5);
|
2001-09-05 16:56:00 +02:00
|
|
|
+ r -> n[VX] = (icInt32Number) floor(v -> n[VX] * d + .5);
|
|
|
|
+ r -> n[VY] = (icInt32Number) floor(v -> n[VY] * d + .5);
|
|
|
|
+ r -> n[VZ] = (icInt32Number) floor(v -> n[VZ] * d + .5);
|
|
|
|
}
|