Skip to content

Commit 9cf477f

Browse files
author
yavuzkoroglu
committed
on 03.07.23 @ 10:33
1 parent 0af74cd commit 9cf477f

File tree

1 file changed

+2
-2
lines changed
  • src/srcmetrics/metrics

1 file changed

+2
-2
lines changed

src/srcmetrics/metrics/npm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ void event_charactersUnit_npm(struct srcsax_context* context, ...) {
112112

113113
if (npm_read_state == 3 && str_eq_const(ch, "static")) {
114114
npm_read_state = 0;
115-
npm_overall--;
116-
npm_currentUnit--;
115+
npm_overall -= !!npm_overall;
116+
npm_currentUnit -= !!npm_currentUnit;
117117
}
118118
}
119119

0 commit comments

Comments
 (0)