Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
`_rich_version` in PE module should return an `int64_t` instead of `uint64_t`.
  • Loading branch information
plusvic committed Jul 26, 2024
1 parent cbc982d commit c70d927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libyara/modules/pe/pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@ define_function(is_64bit)
// Returns the number of rich signatures that match the specified version and
// toolid numbers.
//
static uint64_t _rich_version(
static int64_t _rich_version(
YR_OBJECT* module,
uint64_t version,
uint64_t toolid)
Expand All @@ -3382,7 +3382,7 @@ static uint64_t _rich_version(
PRICH_SIGNATURE clear_rich_signature;
SIZED_STRING* rich_string;

uint64_t result = 0;
int64_t result = 0;

// Check if the required fields are set
if (yr_is_undefined(module, "rich_signature.length"))
Expand Down

0 comments on commit c70d927

Please sign in to comment.