[brlcad-commits] SF.net SVN: brlcad:[55483] brlcad/trunk/src/librt/primitives/half/half.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2013-05-16 21:00:41
|
Revision: 55483 http://sourceforge.net/p/brlcad/code/55483 Author: starseeker Date: 2013-05-16 21:00:38 +0000 (Thu, 16 May 2013) Log Message: ----------- Offset is fastf_t here, not plane_t - was causing the final value of planes to be corrupted in a g2asc - asc2g cycle. Cause was incorret parameters used during a switch to bu_offsetofarray from bu_offsetof to quell compiler warnings (r54133). Need to double check any other offset code with similar changes to make sure no similar bugs were introduced. Sean identified the specific problem with the bu_offsetofarray inputs. Revision Links: -------------- http://sourceforge.net/p/brlcad/code/54133 Modified Paths: -------------- brlcad/trunk/src/librt/primitives/half/half.c Modified: brlcad/trunk/src/librt/primitives/half/half.c =================================================================== --- brlcad/trunk/src/librt/primitives/half/half.c 2013-05-16 20:56:31 UTC (rev 55482) +++ brlcad/trunk/src/librt/primitives/half/half.c 2013-05-16 21:00:38 UTC (rev 55483) @@ -61,8 +61,8 @@ #define HALF_NULL ((struct half_specific *)0) const struct bu_structparse rt_hlf_parse[] = { - { "%f", 3, "N", bu_offsetofarray(struct rt_half_internal, eqn, plane_t, X), BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }, - { "%f", 1, "d", bu_offsetofarray(struct rt_half_internal, eqn, plane_t, W), BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }, + { "%f", 3, "N", bu_offsetofarray(struct rt_half_internal, eqn, fastf_t, X), BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }, + { "%f", 1, "d", bu_offsetofarray(struct rt_half_internal, eqn, fastf_t, W), BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }, { {'\0', '\0', '\0', '\0'}, 0, (char *)NULL, 0, BU_STRUCTPARSE_FUNC_NULL, NULL, NULL } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |