fix pointer casting to make gcc happy
This commit is contained in:
parent
8bf083a871
commit
b105481207
@ -559,14 +559,13 @@ public:
|
|||||||
|
|
||||||
if (hd.flags & EFDataCompressed) {
|
if (hd.flags & EFDataCompressed) {
|
||||||
LOGDEB1(("Circache:readdicdata: data compressed\n"));
|
LOGDEB1(("Circache:readdicdata: data compressed\n"));
|
||||||
char *uncomp;
|
void *uncomp;
|
||||||
unsigned int uncompsize;
|
unsigned int uncompsize;
|
||||||
if (!inflateToDynBuf(bf, hd.datasize,
|
if (!inflateToDynBuf(bf, hd.datasize, &uncomp, &uncompsize)) {
|
||||||
(void **)&uncomp, &uncompsize)) {
|
|
||||||
m_reason << "CirCache: decompression failed ";
|
m_reason << "CirCache: decompression failed ";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
data->assign(uncomp, uncompsize);
|
data->assign((char *)uncomp, uncompsize);
|
||||||
free(uncomp);
|
free(uncomp);
|
||||||
} else {
|
} else {
|
||||||
LOGDEB1(("Circache:readdicdata: data NOT compressed\n"));
|
LOGDEB1(("Circache:readdicdata: data NOT compressed\n"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user