MantisBT - Ecere SDK
View Issue Details
0001199Ecere SDKecerepublic2018-07-18 16:342018-07-20 02:30
jerome 
slothtrop 
immediatemajorhave not tried
assignedopen 
0.44.15 
0.44.16 
0001199: ECON parser fails to properly parse a=b while a = b works fine
- Also test with JSON if any similar problem occurs
No tags attached.
Issue History
2018-07-18 16:34jeromeNew Issue
2018-07-18 16:34jeromeStatusnew => assigned
2018-07-18 16:34jeromeAssigned To => slothtrop
2018-07-20 02:30jeromeNote Added: 0001481

Notes
(0001481)
jerome   
2018-07-20 02:30   
diff --git a/ecere/src/sys/JSON.ec b/ecere/src/sys/JSON.ec
index 3aacb596e..e1fe4d9ca 100644
--- a/ecere/src/sys/JSON.ec
+++ b/ecere/src/sys/JSON.ec
@@ -1055,12 +1055,12 @@ private:
                bool isTemplateArg = false;
                uint offset = 0;

- ch = 0;
- SkipEmpty();
-
                // Find Member in Object Class
                if(eCON && (ch != '=' && ch != ':'))
                {
+ ch = 0;
+ SkipEmpty();
+
                   eClass_FindNextMember(objectType, &curClass, &curMember, subMemberStack, &subMemberStackPos);
                   if(curMember)
                   {