[Forensics-changes] [yara] 100/160: Add missing typecasts causing warnings in Visual C++
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit b8982dbcaac111d47cf6917d63fd6e0381170221
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Tue May 5 11:40:25 2015 +0200
Add missing typecasts causing warnings in Visual C++
---
libyara/grammar.c | 4 ++--
libyara/grammar.y | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libyara/grammar.c b/libyara/grammar.c
index a995c40..0de89f6 100644
--- a/libyara/grammar.c
+++ b/libyara/grammar.c
@@ -2921,7 +2921,7 @@ yyreduce:
ERROR_IF(compiler->last_result != ERROR_SUCCESS);
// create a fixup entry for the jump and push it in the stack
- YR_FIXUP* fixup = yr_malloc(sizeof(YR_FIXUP));
+ YR_FIXUP* fixup = (YR_FIXUP*) yr_malloc(sizeof(YR_FIXUP));
if (fixup == NULL)
compiler->last_error = ERROR_INSUFICIENT_MEMORY;
@@ -2986,7 +2986,7 @@ yyreduce:
ERROR_IF(compiler->last_result != ERROR_SUCCESS);
- YR_FIXUP* fixup = yr_malloc(sizeof(YR_FIXUP));
+ YR_FIXUP* fixup = (YR_FIXUP*) yr_malloc(sizeof(YR_FIXUP));
if (fixup == NULL)
compiler->last_error = ERROR_INSUFICIENT_MEMORY;
diff --git a/libyara/grammar.y b/libyara/grammar.y
index 3903873..98b9a14 100644
--- a/libyara/grammar.y
+++ b/libyara/grammar.y
@@ -1252,7 +1252,7 @@ expression
ERROR_IF(compiler->last_result != ERROR_SUCCESS);
// create a fixup entry for the jump and push it in the stack
- YR_FIXUP* fixup = yr_malloc(sizeof(YR_FIXUP));
+ YR_FIXUP* fixup = (YR_FIXUP*) yr_malloc(sizeof(YR_FIXUP));
if (fixup == NULL)
compiler->last_error = ERROR_INSUFICIENT_MEMORY;
@@ -1311,7 +1311,7 @@ expression
ERROR_IF(compiler->last_result != ERROR_SUCCESS);
- YR_FIXUP* fixup = yr_malloc(sizeof(YR_FIXUP));
+ YR_FIXUP* fixup = (YR_FIXUP*) yr_malloc(sizeof(YR_FIXUP));
if (fixup == NULL)
compiler->last_error = ERROR_INSUFICIENT_MEMORY;
--
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