Skip to content
This repository
Browse code

com/gsolo/encryption/SHA1.as: stop compile warnings.

  • Loading branch information...
commit 8b52ec47560c6d4cfd3da996f5861a4f1696fe88 1 parent ee27864
Joel Martin authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 flash-src/com/gsolo/encryption/SHA1.as
6 flash-src/com/gsolo/encryption/SHA1.as
@@ -76,7 +76,7 @@ package com.gsolo.encryption {
76 76 x[len >> 5] |= 0x80 << (24 - len % 32);
77 77 x[((len + 64 >> 9) << 4) + 15] = len;
78 78
79   - var w:Array = Array(80);
  79 + var w:Array = new Array(80);
80 80 var a:Number = 1732584193;
81 81 var b:Number = -271733879;
82 82 var c:Number = -1732584194;
@@ -136,7 +136,7 @@ package com.gsolo.encryption {
136 136 var bkey:Array = str2binb (key);
137 137 if (bkey.length > 16) bkey = core_sha1 (bkey, key.length * chrsz);
138 138
139   - var ipad:Array = Array(16), opad:Array = Array(16);
  139 + var ipad:Array = new Array(16), opad:Array = new Array(16);
140 140 for(var i:Number = 0; i < 16; i++) {
141 141 ipad[i] = bkey[i] ^ 0x36363636;
142 142 opad[i] = bkey[i] ^ 0x5C5C5C5C;
@@ -215,4 +215,4 @@ package com.gsolo.encryption {
215 215 return str;
216 216 }
217 217 }
218   -}
  218 +}

0 comments on commit 8b52ec4

Please sign in to comment.
Something went wrong with that request. Please try again.