You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/03/06 18:14:31 UTC

[royale-asjs] branch develop updated: TypeDefinition: fixed variable that should have been typed as int instead of uint

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2e91b52  TypeDefinition: fixed variable that should have been typed as int instead of uint
2e91b52 is described below

commit 2e91b52be7884ff7da91411ec5119e3b0e887f90
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Mar 6 10:13:17 2019 -0800

    TypeDefinition: fixed variable that should have been typed as int instead of uint
---
 .../src/main/royale/org/apache/royale/reflection/TypeDefinition.as      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
index dd64e86..db0da62 100755
--- a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
+++ b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
@@ -741,7 +741,7 @@ COMPILE::SWF {
                             var itemClassDef:DefinitionWithMetaData = new itemClass(item, itemDef);
                             if (resolve) {
                                 //resolve against older versions ("overrides")
-                                var oldIdx:uint = oldNames.indexOf(itemClassDef.name);
+                                var oldIdx:int = oldNames.indexOf(itemClassDef.name);
                                 if (oldIdx != -1) {
                                     //we have an override of an ancestor's definition, replace it
                                     results[oldIdx] = itemClassDef;