Revision: 55170
http://brlcad.svn.sourceforge.net/brlcad/?rev=55170&view=rev
Author: bob1961
Date: 2013-04-17 17:25:10 +0000 (Wed, 17 Apr 2013)
Log Message:
-----------
This fixes a bug in rt_arb_centroid() (.e.g, "*cent[0] = x_avg;" becomes
"(*cent)[0] = x_avg;", notice that [] binds tighter than *).
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 2013-04-17 17:20:17 UTC
(rev 55169)
+++ brlcad/trunk/src/librt/primitives/arb8/arb8.c 2013-04-17 17:25:10 UTC
(rev 55170)
@@ -381,9 +381,9 @@
y_avg /= arb_type;
z_avg /= arb_type;
- *cent[0] = x_avg;
- *cent[1] = y_avg;
- *cent[2] = z_avg;
+ (*cent)[0] = x_avg;
+ (*cent)[1] = y_avg;
+ (*cent)[2] = z_avg;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits