Skip to content

Commit b28760c

Browse files
committed
Fix -Wparentheses warning in gpre/pat
+ constexpr
1 parent b341703 commit b28760c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpre/pat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ enum pat_t {
5757
FR // Field reference
5858
};
5959

60-
static const struct ops
60+
static constexpr struct ops
6161
{
6262
pat_t ops_type;
6363
TEXT ops_string[3];
@@ -183,7 +183,7 @@ void PATTERN_expand( USHORT column, const TEXT* pattern, PAT* args)
183183
// values printed out are signed.
184184
SLONG long_value;
185185
TEXT c;
186-
while (c = *pattern++)
186+
while ((c = *pattern++))
187187
{
188188
if (c != '%')
189189
{

0 commit comments

Comments
 (0)