The Action::numRefs() and RedAction::numRefs() functions should return int.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 2 Mar 2007 17:47:03 +0000 (17:47 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 2 Mar 2007 17:47:03 +0000 (17:47 +0000)
Since the numbers these functions return are usually very low and the result is
only checked with the test > 0, the error never manifested.

git-svn-id: http://svn.complang.org/ragel/trunk@117 052ea7fc-9027-0410-9066-f65837a77df0

ragel/parsedata.h
redfsm/redfsm.h

index a856257..b6e1b28 100644 (file)
@@ -85,7 +85,7 @@ public:
        ActionRefs actionRefs;
 
        /* Number of references in the final machine. */
-       bool numRefs() 
+       int numRefs() 
                { return numTransRefs + numToStateRefs + numFromStateRefs + numEofRefs; }
        int numTransRefs;
        int numToStateRefs;
index e1f7511..515b1b6 100644 (file)
@@ -194,7 +194,7 @@ struct RedAction
        IntSet *eofRefs;
 
        /* Number of references in the final machine. */
-       bool numRefs() 
+       int numRefs() 
                { return numTransRefs + numToStateRefs + numFromStateRefs + numEofRefs; }
        int numTransRefs;
        int numToStateRefs;