openbsd-ports/graphics/lcms/patches/patch-src_cmsmtrx_c
2006-03-16 11:03:07 +00:00

17 lines
699 B
Plaintext

$OpenBSD: patch-src_cmsmtrx_c,v 1.2 2006/03/16 11:03:07 espie Exp $
--- src/cmsmtrx.c.orig Fri Nov 25 12:11:16 2005
+++ src/cmsmtrx.c Tue Mar 7 22:36:36 2006
@@ -797,9 +797,9 @@ void MAT3fromFix(LPMAT3 r, LPWMAT3 v)
void VEC3scaleAndCut(LPWVEC3 r, LPVEC3 v, double d)
{
- 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);
+ 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);
}
void MAT3scaleAndCut(LPWMAT3 r, LPMAT3 v, double d)