Skip to content

Commit 95597e8

Browse files
committed
Moved variable declaration to top of function to fix compiler errors on MSVC.
1 parent a13481e commit 95597e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/exp2python/src/classes_python.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ LIBdescribe_entity( Entity entity, FILE * file, Schema schema ) {
584584
Linked_List list;
585585
int num_parent = 0;
586586
int num_derived_inverse_attr = 0;
587+
int index_attribute = 0;
587588

588589
/* class name
589590
need to use new-style classes for properties to work correctly
@@ -680,7 +681,7 @@ LIBdescribe_entity( Entity entity, FILE * file, Schema schema ) {
680681
/* if inheritance, first write the inherited parameters */
681682
list = ENTITYget_supertypes( entity );
682683
num_parent = 0;
683-
int index_attribute = 0;
684+
index_attribute = 0;
684685
if( ! LISTempty( list ) ) {
685686
LISTdo( list, e, Entity )
686687
/* search attribute names for superclass */

0 commit comments

Comments
 (0)