flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/4] git commit: [flex-utilities] [refs/heads/develop] - fix bug in checksum
Date Thu, 13 Feb 2014 22:03:32 GMT
Updated Branches:
  refs/heads/develop cd397df88 -> 3c7467d3f


fix bug in checksum


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

Branch: refs/heads/develop
Commit: b80578a54f6abf68716d7e749c6c6e56ac150dec
Parents: cd397df
Author: Alex Harui <aharui@apache.org>
Authored: Thu Feb 13 12:38:25 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Feb 13 13:19:33 2014 -0800

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/tags/Checksum.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b80578a5/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as b/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
index 9827af7..201fb3b 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as
@@ -117,7 +117,7 @@ package org.apache.flex.ant.tags
                 return;
             }
             var ba:ByteArray = new ByteArray();
-            fs.readBytes(ba, 0, Math.max(readbuffersize, fs.bytesAvailable));
+            fs.readBytes(ba, 0, Math.min(readbuffersize, fs.bytesAvailable));
             md5.update(ba);
             ant.functionToCall = getSum;
             ant.progressClass = this;


Mime
View raw message