[brlcad-commits] SF.net SVN: brlcad:[50144] brlcad/trunk/src/librt/primitives/arb8/arb8.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2012-04-17 20:22:23
|
Revision: 50144 http://brlcad.svn.sourceforge.net/brlcad/?rev=50144&view=rev Author: brlcad Date: 2012-04-17 20:22:17 +0000 (Tue, 17 Apr 2012) Log Message: ----------- try to quell the warning by using a temporary Modified Paths: -------------- brlcad/trunk/src/librt/primitives/arb8/arb8.c Modified: brlcad/trunk/src/librt/primitives/arb8/arb8.c =================================================================== --- brlcad/trunk/src/librt/primitives/arb8/arb8.c 2012-04-17 20:20:30 UTC (rev 50143) +++ brlcad/trunk/src/librt/primitives/arb8/arb8.c 2012-04-17 20:22:17 UTC (rev 50144) @@ -1817,17 +1817,16 @@ int rt_arb_calc_planes(struct bu_vls *error_msg_ret, struct rt_arb_internal *arb, - int type, + int cgtype, plane_t planes[6], const struct bn_tol *tol) { register int i, p1, p2, p3; + int type = cgtype - ARB4; /* ARB4 at location 0, ARB5 at 1, etc */ RT_ARB_CK_MAGIC(arb); BN_CK_TOL(tol); - type -= ARB4; /* ARB4 at location 0, ARB5 at 1, etc */ - for (i=0; i<6; i++) { if (rt_arb_faces[type][i*4] == -1) break; /* faces are done */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |