C++ conversion: fixed compilation errors for quake3 project.
This commit is contained in:
@@ -2472,7 +2472,12 @@ struct inflate_blocks_state {
|
||||
#define LOAD {LOADIN LOADOUT}
|
||||
|
||||
/* masks for lower bits (size given to avoid silly warnings with Visual C++) */
|
||||
static uInt inflate_mask[17];
|
||||
//static uInt inflate_mask[17];
|
||||
static uInt inflate_mask[17] = {
|
||||
0x0000,
|
||||
0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
|
||||
0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
|
||||
};
|
||||
|
||||
/* copy as much as possible from the sliding window to the output area */
|
||||
static int inflate_flush OF((
|
||||
@@ -2849,11 +2854,13 @@ int inflate_blocks_sync_point(inflate_blocks_statef *s)
|
||||
|
||||
|
||||
/* And'ing with mask[n] masks the lower n bits */
|
||||
/*
|
||||
static uInt inflate_mask[17] = {
|
||||
0x0000,
|
||||
0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
|
||||
0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
/* copy as much as possible from the sliding window to the output area */
|
||||
|
||||
Reference in New Issue
Block a user