flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - UPDATE FLEX-33829 improve create UID performance and use fix minor issue
Date Sun, 20 Oct 2013 22:44:27 GMT
Updated Branches:
  refs/heads/develop 40d67742e -> 165af193b


UPDATE FLEX-33829 improve create UID performance and use
fix minor issue


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/165af193
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/165af193
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/165af193

Branch: refs/heads/develop
Commit: 165af193b98df393361f3ba50cf3e3c98e08b15b
Parents: 40d6774
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Mon Oct 21 00:43:22 2013 +0200
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Mon Oct 21 00:43:22 2013 +0200

----------------------------------------------------------------------
 frameworks/projects/framework/src/mx/utils/UIDUtil.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/165af193/frameworks/projects/framework/src/mx/utils/UIDUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/utils/UIDUtil.as b/frameworks/projects/framework/src/mx/utils/UIDUtil.as
index 6ada280..116627f 100644
--- a/frameworks/projects/framework/src/mx/utils/UIDUtil.as
+++ b/frameworks/projects/framework/src/mx/utils/UIDUtil.as
@@ -135,7 +135,7 @@ public class UIDUtil
         var time:uint = new Date().getTime(); // extract last 8 digits
         var timeString:String = time.toString(16).toUpperCase();
         // 0xFFFFFFFF milliseconds ~= 3 days, so timeString may have between 1 and 8 digits,
hence we need to pad with 0s to 8 digits
-        for (i = 8; i > timeString.length; --i)
+        for (i = 8; i > timeString.length; i--)
             UIDBuffer.writeByte(48);
         UIDBuffer.writeUTFBytes(timeString);
 


Mime
View raw message