Various minor fixes following a pass of cppcheck static analyzer

This commit is contained in:
ocornut
2015-12-30 11:45:13 +01:00
parent 3aa4a108ed
commit 4e3c6f64c0
3 changed files with 5 additions and 3 deletions

View File

@ -79,7 +79,6 @@ bool binary_to_compressed_c(const char* filename, const char* symbol, bool use_b
if (use_base85_encoding)
{
fprintf(out, "static const char %s_%sdata_base85[%d+1] =\n \"", symbol, compressed_str, (int)((compressed_sz+3)/4)*5);
int column = 0;
for (int i = 0; i < compressed_sz; i += 4)
{
unsigned int d = *(unsigned int*)(compressed + i);