File: g%2B%2B14.patch

package info (click to toggle)
magics%2B%2B 4.16.0%2Breally4.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372,992 kB
  • sloc: cpp: 169,061; xml: 37,612; fortran: 26,295; python: 19,863; perl: 8,096; ansic: 4,660; javascript: 2,298; sh: 1,475; csh: 136; f90: 97; makefile: 86
file content (16 lines) | stat: -rw-r--r-- 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Cast needed for g++-14
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2025-04-14
Forwarded: no

--- a/src/drivers/minizip/zip.c
+++ b/src/drivers/minizip/zip.c
@@ -880,7 +880,7 @@
         unsigned char bufHead[RAND_HEAD_LEN];
         unsigned int sizeHead;
         zi->ci.encrypt = 1;
-        zi->ci.pcrc_32_tab = get_crc_table();
+        zi->ci.pcrc_32_tab = (const z_crc_t *)  get_crc_table();
         /*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/
 
         sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting);