diff options
| author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2021-09-04 12:16:16 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-09-22 16:00:46 +0200 |
| commit | f77af71e77cdb9d41d5e3a606e2a8dd67034e387 (patch) | |
| tree | 87dc4702dbaf00ef99c69cc1fd3461a2f27c829c | |
| parent | e9d0177feafa3adad6ca90cadd44b50389ac4094 (diff) | |
| download | Project-Tick-f77af71e77cdb9d41d5e3a606e2a8dd67034e387.tar.gz Project-Tick-f77af71e77cdb9d41d5e3a606e2a8dd67034e387.zip | |
Fixed trailing whitespaces and missing new lines.
| -rw-r--r-- | cmake/detect-arch.c | 4 | ||||
| -rw-r--r-- | cmake/run-and-compare.cmake | 2 | ||||
| -rw-r--r-- | cmake/test-compress.cmake | 2 | ||||
| -rw-r--r-- | cmake/test-tools.cmake | 1 | ||||
| -rw-r--r-- | deflate_fast.c | 1 | ||||
| -rw-r--r-- | inffast.c | 4 | ||||
| -rw-r--r-- | insert_string_tpl.h | 2 |
7 files changed, 7 insertions, 9 deletions
diff --git a/cmake/detect-arch.c b/cmake/detect-arch.c index 8cae4eb668..84e6a84100 100644 --- a/cmake/detect-arch.c +++ b/cmake/detect-arch.c @@ -36,7 +36,7 @@ #if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__) #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #error archfound powerpc64le - #else + #else #error archfound powerpc64 #endif #else @@ -94,7 +94,7 @@ #error archfound rs6000 // RISC-V -#elif defined(__riscv) +#elif defined(__riscv) #if __riscv_xlen == 64 #error archfound riscv64 #elif __riscv_xlen == 32 diff --git a/cmake/run-and-compare.cmake b/cmake/run-and-compare.cmake index af54abc264..209d31e9e6 100644 --- a/cmake/run-and-compare.cmake +++ b/cmake/run-and-compare.cmake @@ -59,4 +59,4 @@ endif() if(CMD_RESULT) message(FATAL_ERROR "Run compare failed: ${CMD_RESULT}") -endif()
\ No newline at end of file +endif() diff --git a/cmake/test-compress.cmake b/cmake/test-compress.cmake index 321fa54301..cfc7613ab2 100644 --- a/cmake/test-compress.cmake +++ b/cmake/test-compress.cmake @@ -261,4 +261,4 @@ if(GZIP_VERIFY AND NOT "${COMPRESS_ARGS}" MATCHES "-T") endif() endif() -cleanup_always()
\ No newline at end of file +cleanup_always() diff --git a/cmake/test-tools.cmake b/cmake/test-tools.cmake index 3275935547..4afe07c2c1 100644 --- a/cmake/test-tools.cmake +++ b/cmake/test-tools.cmake @@ -32,4 +32,3 @@ add_test(NAME switchlevels-help COMMAND ${CMAKE_COMMAND} "-DCOMMAND=${TEST_COMMAND}" -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-redirect.cmake) - diff --git a/deflate_fast.c b/deflate_fast.c index 4142a7aa4c..c6e24e48a2 100644 --- a/deflate_fast.c +++ b/deflate_fast.c @@ -47,7 +47,6 @@ Z_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { /* Find the longest match, discarding those <= prev_length. * At this point we have always match length < WANT_MIN_MATCH */ - if (dist <= MAX_DIST(s) && dist > 0 && hash_head != 0) { /* To simplify the code, we prevent matches with the string * of window index 0 (in particular we have to avoid a match @@ -152,8 +152,8 @@ void Z_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start) { lmask = (1U << state->lenbits) - 1; dmask = (1U << state->distbits) - 1; - /* Detect if out and window point to the same memory allocation. In this instance it is - necessary to use safe chunk copy functions to prevent overwriting the window. If the + /* Detect if out and window point to the same memory allocation. In this instance it is + necessary to use safe chunk copy functions to prevent overwriting the window. If the window is overwritten then future matches with far distances will fail to copy correctly. */ extra_safe = (out >= window && out + INFLATE_FAST_MIN_LEFT <= window + wsize); diff --git a/insert_string_tpl.h b/insert_string_tpl.h index c116544f9d..ad88275bfc 100644 --- a/insert_string_tpl.h +++ b/insert_string_tpl.h @@ -23,7 +23,7 @@ */ #ifndef HASH_CALC_OFFSET -# define HASH_CALC_OFFSET 0 +# define HASH_CALC_OFFSET 0 #endif #ifndef HASH_CALC_MASK # define HASH_CALC_MASK HASH_MASK |
