Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
/jdk19Public archive

Commit4c6d22a

Browse files
author
Lance Andersen
committed
8288769: Revert unintentional change to deflate.c
Reviewed-by: iris, bpb, alanb
1 parent5fce02e commit4c6d22a

File tree

1 file changed

+2
-2
lines changed
  • src/java.base/share/native/libzip/zlib

1 file changed

+2
-2
lines changed

‎src/java.base/share/native/libzip/zlib/deflate.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ int ZEXPORT deflateResetKeep (strm)
555555
s->wrap==2 ?crc32(0L,Z_NULL,0) :
556556
#endif
557557
adler32(0L,Z_NULL,0);
558-
s->last_flush=Z_NO_FLUSH;
558+
s->last_flush=-2;
559559

560560
_tr_init(s);
561561

@@ -649,7 +649,7 @@ int ZEXPORT deflateParams(strm, level, strategy)
649649
func=configuration_table[s->level].func;
650650

651651
if ((strategy!=s->strategy||func!=configuration_table[level].func)&&
652-
s->high_water) {
652+
s->last_flush!=-2) {
653653
/* Flush the last buffer: */
654654
interr=deflate(strm,Z_BLOCK);
655655
if (err==Z_STREAM_ERROR)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp