Skip to content

Commit 5b4b26b

Browse files
committed
Commit old fixes
1 parent 2fc129f commit 5b4b26b

4 files changed

Lines changed: 16 additions & 15 deletions

File tree

Ext.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
"Separator",
4646
[0, "Get Error"],
4747
[1, "Get String"],
48-
[1, "Get Integer"],
49-
[1, "Get Long (64-bit as string)"],
50-
[1, "Get Float"],
51-
[1, "Get Double (64-bit as string)"],
52-
[1, "Get Number of Values"],
53-
[1, "Get Boolean (1|0)"],
48+
[2, "Get Integer"],
49+
[3, "Get Long (64-bit as string)"],
50+
[4, "Get Float"],
51+
[5, "Get Double (64-bit as string)"],
52+
[6, "Get Number of Values"],
53+
[7, "Get Boolean (1|0)"],
5454
"Separator"
5555
],
5656

Extension.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ Extension::Extension(RD *rd, SerializedED *SED, createObjectInfo *COB) : rd(rd),
4949
LinkCondition(8, IsTrue);
5050

5151
LinkExpression(0, GetError);
52-
LinkExpression(1, GetInteger);
53-
LinkExpression(2, GetLong);
54-
LinkExpression(3, GetFloat);
55-
LinkExpression(4, GetDouble);
56-
LinkExpression(5, GetNumValues);
57-
LinkExpression(6, GetBoolNum);
52+
LinkExpression(1, GetString);
53+
LinkExpression(2, GetInteger);
54+
LinkExpression(3, GetLong);
55+
LinkExpression(4, GetFloat);
56+
LinkExpression(5, GetDouble);
57+
LinkExpression(6, GetNumValues);
58+
LinkExpression(7, GetBoolNum);
5859

5960
current = root = json_parse("null", 4);
6061
}

Extension.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ class Extension
205205
TCHAR const*GetString()
206206
{
207207
if(!IsString()) return _T("");
208-
TCHAR const*t = Edif::ConvertString(current->u.string.ptr);
208+
TCHAR *t = Edif::ConvertString(current->u.string.ptr);
209209
TCHAR *c = Runtime.CopyString(t);
210-
Edif::FreeString(c);
210+
Edif::FreeString(t);
211211
return c;
212212
}
213213
int GetInteger()

Template.vcproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<VisualStudioProject
33
ProjectType="Visual C++"
44
Version="9.00"
5-
Name="Template"
5+
Name="JSON_Object"
66
ProjectGUID="{3BCB4C73-71F6-43B6-803D-41411F92652A}"
77
RootNamespace="Template"
88
TargetFrameworkVersion="131072"

0 commit comments

Comments
 (0)