[Forensics-changes] [yara] 74/368: Fix warning

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit 1891aa1441b996371fbc08fd7727cf9c25411966
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Sep 24 13:43:56 2015 +0200

    Fix warning
---
 libyara/grammar.c | 2 +-
 libyara/grammar.y | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/grammar.c b/libyara/grammar.c
index dfae125..2f3a6cf 100644
--- a/libyara/grammar.c
+++ b/libyara/grammar.c
@@ -3254,7 +3254,7 @@ yyreduce:
         // in the proper OP_INTXX opcode.
 
         compiler->last_result = yr_parser_emit(
-            yyscanner, OP_READ_INT + (yyvsp[(1) - (4)].integer), NULL);
+            yyscanner, (uint8_t) (OP_READ_INT + (yyvsp[(1) - (4)].integer)), NULL);
 
         ERROR_IF(compiler->last_result != ERROR_SUCCESS);
 
diff --git a/libyara/grammar.y b/libyara/grammar.y
index 93d5a40..8edffbe 100644
--- a/libyara/grammar.y
+++ b/libyara/grammar.y
@@ -1528,7 +1528,7 @@ primary_expression
         // in the proper OP_INTXX opcode.
 
         compiler->last_result = yr_parser_emit(
-            yyscanner, OP_READ_INT + $1, NULL);
+            yyscanner, (uint8_t) (OP_READ_INT + $1), NULL);
 
         ERROR_IF(compiler->last_result != ERROR_SUCCESS);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list