[cig-commits] commit: build phase for MeshShapeVC was attempting to use the passed in (void*)data to obtain a context. this function argument is generally null under the current implementation however. should instead use self->context to obtain required context. similar issues may present elsewhere.
Mercurial
hg at geodynamics.org
Tue Mar 23 10:35:21 PDT 2010
changeset: 596:02f4b902987d
branch: 1.4.x
user: JohnMansour <john.mansour at maths.monash.edu.au>
date: Mon Mar 01 16:40:28 2010 +1100
files: Utils/src/MeshShapeVC.c
description:
build phase for MeshShapeVC was attempting to use the passed in (void*)data to obtain a context. this function argument is generally null under the current implementation however. should instead use self->context to obtain required context. similar issues may present elsewhere.
diff -r e2ca66bdc7dd -r 02f4b902987d Utils/src/MeshShapeVC.c
--- a/Utils/src/MeshShapeVC.c Tue Feb 23 18:16:14 2010 +1100
+++ b/Utils/src/MeshShapeVC.c Mon Mar 01 16:40:28 2010 +1100
@@ -281,7 +281,7 @@ void _MeshShapeVC_Build( void* variable
/****************** VariableCondition Virtual Functions ******************/
void _MeshShapeVC_BuildSelf( void* variableCondition, void* data /* for build phase */ ) {
MeshShapeVC* self = (MeshShapeVC*)variableCondition;
- AbstractContext* context = (AbstractContext*) data;
+ AbstractContext* context = (AbstractContext*) self->context;
assert( context && Stg_Class_IsInstance( context, AbstractContext_Type ) );
assert( self->shapeName );
More information about the CIG-COMMITS
mailing list