Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix following splint warnigs.

src/elab.c: (in function find_arch)
src/elab.c:88:28: Variable new_line initialized to type uint16_t,
expects int:
                     tree_loc(t)->first_line
  To allow arbitrary integral types to match any integral type, use
  +matchanyintegral.
src/elab.c:89:28: Variable old_line initialized to type uint16_t,
expects int:
                     tree_loc(*(params->arch))->first_line
  • Loading branch information...
commit e2f976ae7b390394e05df85195daa94dbecfc3b3 1 parent 8f0050b
@hiyuh hiyuh authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/elab.c
View
4 src/elab.c
@@ -79,8 +79,8 @@ static void find_arch(tree_t t, void *context)
// Note this assumes both architectures are from the same
// file but this shouldn't be a problem with high-resolution
// timestamps
- int new_line = tree_loc(t)->first_line;
- int old_line = tree_loc(*(params->arch))->first_line;
+ uint16_t new_line = tree_loc(t)->first_line;
+ uint16_t old_line = tree_loc(*(params->arch))->first_line;
if (new_line > old_line)
*(params->arch) = t;
Please sign in to comment.
Something went wrong with that request. Please try again.