Skip to content

Commit c4b544f

Browse files
committed
Fix -Wparentheses warnings in burp
1 parent 8886fc6 commit c4b544f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/burp/burp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ static SLONG get_number( const SCHAR* string)
19941994
SCHAR c;
19951995
SLONG value = 0;
19961996

1997-
for (const SCHAR* p = string; c = *p++;)
1997+
for (const SCHAR* p = string; (c = *p++);)
19981998
{
19991999
if (c < '0' || c > '9')
20002000
return 0;
@@ -2612,7 +2612,7 @@ static ULONG get_size(const SCHAR* string, burp_fil* file)
26122612
bool digit = false;
26132613

26142614
file->fil_size_code = size_n;
2615-
for (const SCHAR *num = string; c = *num++;)
2615+
for (const SCHAR *num = string; (c = *num++);)
26162616
{
26172617
if (isdigit(c))
26182618
{

0 commit comments

Comments
 (0)