[Forensics-changes] [yara] 163/192: Make integer conversion explicit to avoid warnings
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.0
in repository yara.
commit 9b3b8815f09af3376b309f0ab0cf28d58c2816ec
Author: plusvic <plusvic at gmail.com>
Date: Fri May 5 19:26:27 2017 +0200
Make integer conversion explicit to avoid warnings
---
libyara/re.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/re.c b/libyara/re.c
index 63d6b34..c624379 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -1203,8 +1203,8 @@ int _yr_re_emit(
*code_size += branch_size;
- repeat_start_args_addr->offset = 2 * inst_size + branch_size;
- repeat_args.offset = -branch_size;
+ repeat_start_args_addr->offset = (int32_t)(2 * inst_size + branch_size);
+ repeat_args.offset = -((int32_t) branch_size);
FAIL_ON_ERROR(_yr_emit_inst_arg_struct(
emit_context,
--
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