Просмотр исходного кода

[eval] fix crc32 and enable test again

see #7826
Simon Krajewski 6 лет назад
Родитель
Сommit
18a7f97367
3 измененных файлов с 3 добавлено и 5 удалено
  1. 1 1
      libs
  2. 1 1
      src/macro/eval/evalStdLib.ml
  3. 1 3
      tests/unit/src/unitstd/haxe/crypto/Crc32.unit.hx

+ 1 - 1
libs

@@ -1 +1 @@
-Subproject commit 47b5801cbfca8d45de3b4790aa49576da1a1212d
+Subproject commit 101516896900a046e19e32737b9a09a870da2f94

+ 1 - 1
src/macro/eval/evalStdLib.ml

@@ -662,7 +662,7 @@ module StdCrc32 = struct
 	let make = vfun1 (fun data ->
 		let data = decode_bytes data in
 		let crc32 = Extc.zlib_crc32 data (Bytes.length data) in
-		vint crc32
+		vint32 crc32
 	)
 end
 

+ 1 - 3
tests/unit/src/unitstd/haxe/crypto/Crc32.unit.hx

@@ -1,4 +1,2 @@
 haxe.crypto.Crc32.make(haxe.io.Bytes.ofString("")) == 0;
-#if !eval
-haxe.crypto.Crc32.make(haxe.io.Bytes.ofString("The quick brown fox jumps over the lazy dog")) == 0x414FA339;
-#end
+haxe.crypto.Crc32.make(haxe.io.Bytes.ofString("The quick brown fox jumps over the lazy dog")) == 0x414FA339;