Skip to content

Commit

Permalink
fix some GCC warnings (this clause does not guard...)
Browse files Browse the repository at this point in the history
([-Wmisleading-indentation])
Original Patch Author: Joao Eriberto Mota Filho <[email protected]>
My changes: In String.h and Vector.h, just fix the indent, don't break functionality.
  • Loading branch information
sshock committed May 11, 2016
1 parent 0f67bdd commit 4fd23a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lzma443/C/Common/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class CStringBase
for(int i = 0; i < _length; i++)
if (s.Find(_chars[i]) >= 0)
return i;
return -1;
return -1;
}

void TrimLeft(T c)
Expand Down
2 changes: 1 addition & 1 deletion lzma443/C/Common/Vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class CObjectVector: public CPointerVector
for(int i = 0; i < Size(); i++)
if (item == (*this)[i])
return i;
return -1;
return -1;
}
int FindInSorted(const T& item) const
{
Expand Down
2 changes: 1 addition & 1 deletion tools/affconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ int convert(const char *infile,char *outfile)

int64_t pagenum = *i;

if(!opt_quiet) printf("Converting page %" I64d " of %" I64d "\r",pagenum,highest_pagenum);fflush(stdout);
if(!opt_quiet) { printf("Converting page %" I64d " of %" I64d "\r",pagenum,highest_pagenum); fflush(stdout); }

size_t data_len = image_pagesize;
if(af_get_page(a_in,pagenum,data,&data_len)){
Expand Down

0 comments on commit 4fd23a9

Please sign in to comment.