Skip to content

Commit

Permalink
ACTIONSCRIPT: Add a unsigned long contructor for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Aug 19, 2018
1 parent 50a0349 commit 2e4d4b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aurora/actionscript/variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Variable::Variable(unsigned int value) : _type(kTypeNumber) {
_value.number = value;
}

Variable::Variable(unsigned long value) : _type(kTypeNumber) {
_value.number = value;
}

Variable::Variable(bool value) : _type(kTypeBoolean) {
_value.boolean = value;
}
Expand Down
1 change: 1 addition & 0 deletions src/aurora/actionscript/variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Variable {
Variable(const char *value);
Variable(double value);
Variable(unsigned int value);
Variable(unsigned long value);
Variable(bool value);
Variable(ObjectPtr value);

Expand Down

0 comments on commit 2e4d4b3

Please sign in to comment.