mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-05 01:54:00 +00:00
1. Fixed UTF8 characters for notifybar-desktop on linux
2. Fixed compiler warning, and missing #ifdef
This commit is contained in:
@@ -119,7 +119,7 @@ void ILibDuktape_Compressor_End(ILibDuktape_DuplexStream *stream, void *user)
|
||||
avail = sizeof(tmp) - cs->Z.avail_out;
|
||||
if (avail > 0)
|
||||
{
|
||||
cs->crc = crc32(cs->crc, tmp, (unsigned int)avail);
|
||||
cs->crc = crc32(cs->crc, (unsigned char*)tmp, (unsigned int)avail);
|
||||
ILibDuktape_DuplexStream_WriteData(cs->ds, tmp, (int)avail);
|
||||
}
|
||||
} while (cs->Z.avail_out == 0);
|
||||
@@ -147,7 +147,7 @@ ILibTransport_DoneState ILibDuktape_Compressor_Write(ILibDuktape_DuplexStream *s
|
||||
avail = sizeof(tmp) - cs->Z.avail_out;
|
||||
if (avail > 0)
|
||||
{
|
||||
cs->crc = crc32(cs->crc, tmp, (unsigned int)avail);
|
||||
cs->crc = crc32(cs->crc, (unsigned char*)tmp, (unsigned int)avail);
|
||||
ret = ILibDuktape_DuplexStream_WriteData(cs->ds, tmp, (int)avail);
|
||||
}
|
||||
} while (cs->Z.avail_out == 0);
|
||||
|
||||
Reference in New Issue
Block a user