Skip to content

Commit aa15dd1

Browse files
committed
fix some svace warnigs
1 parent b96ef6d commit aa15dd1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jsquery_io.c

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ flattenJsQueryParseItem(StringInfo buf, JsQueryParseItem *item, bool onlyCurrent
117117
case jqiIndexArray:
118118
appendBinaryStringInfo(buf, (char*)&item->arrayIndex,
119119
sizeof(item->arrayIndex));
120+
/* FALLTHROUGH */ /* keep svace quiet */
120121
case jqiAny:
121122
case jqiAnyArray:
122123
case jqiAnyKey:

jsquery_support.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jsqGetNumeric(JsQueryItem *v)
209209
int32
210210
jsqGetIsType(JsQueryItem *v)
211211
{
212-
Assert(v->type = jqiIs);
212+
Assert(v->type == jqiIs);
213213

214214
return (int32)*v->value.data;
215215
}

0 commit comments

Comments
 (0)