diff options
author | Arkadiy Shapkin <ashapkin@artec-group.com> | 2013-03-17 04:46:46 +0400 |
---|---|---|
committer | Arkadiy Shapkin <ashapkin@artec-group.com> | 2013-03-18 03:30:26 +0400 |
commit | 10c06114cbb1c384b7de3cca6d6601ee750f5178 (patch) | |
tree | 05b4c66610443dd41b50114480da9e8b7e99a123 /deps | |
parent | a5f6138407efb6d8866fe8de5aac13454aefcd82 (diff) | |
download | libgit2-10c06114cbb1c384b7de3cca6d6601ee750f5178.tar.gz |
Several warnings detected by static code analyzer fixed
Implicit type conversion argument of function to size_t type
Suspicious sequence of types castings: size_t -> int -> size_t
Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)'
Unsigned type is never < 0
Diffstat (limited to 'deps')
-rw-r--r-- | deps/regex/regex_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/regex/regex_internal.c b/deps/regex/regex_internal.c index 193854cf5..ad57c20dd 100644 --- a/deps/regex/regex_internal.c +++ b/deps/regex/regex_internal.c @@ -32,7 +32,7 @@ static re_dfastate_t *create_cd_newstate (const re_dfa_t *dfa, #ifdef GAWK #undef MAX /* safety */ -static int +static size_t MAX(size_t a, size_t b) { return (a > b ? a : b); |