We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04881e0 commit 6b1c8b3Copy full SHA for 6b1c8b3
src/de/inetsoftware/jwebassembly/api/java/util/zip/ReplacementForCRC32.java
@@ -29,7 +29,9 @@ class ReplacementForCRC32 {
29
*/
30
@Replace( "java/util/zip/CRC32.update(II)I" )
31
static int update( int crc, int b ) {
32
- return 0; // for Java compiler
+ crc ^= -1;
33
+ crc = (crc >>> 8) ^ makeCRCTable()[(crc ^ b) & 0xFF];
34
+ return crc ^ -1;
35
}
36
37
/**
0 commit comments