Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
790916b2
Commit
790916b2
authored
May 10, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
== and != default to strings instead of ints
parent
05061762
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/script/context.cpp
src/script/context.cpp
+4
-2
No files found.
src/script/context.cpp
View file @
790916b2
...
@@ -242,8 +242,10 @@ void instrUnary (UnaryInstructionType i, ScriptValueP& a) {
...
@@ -242,8 +242,10 @@ void instrUnary (UnaryInstructionType i, ScriptValueP& a) {
a
=
to_script
(
a
->
toString
()
OP
b
->
toString
());
\
a
=
to_script
(
a
->
toString
()
OP
b
->
toString
());
\
}
else
if
(
at
==
SCRIPT_DOUBLE
||
bt
==
SCRIPT_DOUBLE
)
{
\
}
else
if
(
at
==
SCRIPT_DOUBLE
||
bt
==
SCRIPT_DOUBLE
)
{
\
a
=
to_script
((
double
)
*
a
OP
(
double
)
*
b
);
\
a
=
to_script
((
double
)
*
a
OP
(
double
)
*
b
);
\
}
else
{
\
}
else
if
(
at
==
SCRIPT_INT
||
bt
==
SCRIPT_INT
)
{
\
a
=
to_script
((
int
)
*
a
OP
(
int
)
*
b
);
\
a
=
to_script
((
int
)
*
a
OP
(
int
)
*
b
);
\
}
else
{
\
a
=
to_script
(
a
->
toString
()
OP
b
->
toString
());
\
}
\
}
\
break
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment