[Forensics-changes] [yara] 168/368: Fixing compilation warnings in Visual Studio 2013.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:24 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 8cb032a8a6cb7bccbfc58feb9d78c8c9fada09ae
Author: Maxime Lamothe-Brassard <maxime at refractionpoint.com>
Date:   Thu Feb 11 20:02:29 2016 -0800

    Fixing compilation warnings in Visual Studio 2013.
---
 libyara/modules/pe.c | 6 +++---
 libyara/parser.c     | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index c32fc47..4b221ff 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -1838,7 +1838,7 @@ define_function(locale)
 define_function(language)
 {
   YR_OBJECT* module = module();
-  PE* pe = module->data;
+  PE* pe = (PE*) module->data;
 
   uint64_t language = integer_argument(1);
   int64_t n, i;
@@ -1881,7 +1881,7 @@ define_function(is_dll)
 define_function(is_32bit)
 {
   YR_OBJECT* module = module();
-  PE* pe = module->data;
+  PE* pe = (PE*) module->data;
 
   if (pe == NULL)
     return_integer(UNDEFINED);
@@ -1893,7 +1893,7 @@ define_function(is_32bit)
 define_function(is_64bit)
 {
   YR_OBJECT* module = module();
-  PE* pe = module->data;
+  PE* pe = (PE*) module->data;
 
   if (pe == NULL)
     return_integer(UNDEFINED);
diff --git a/libyara/parser.c b/libyara/parser.c
index 82b0994..db4fe58 100644
--- a/libyara/parser.c
+++ b/libyara/parser.c
@@ -468,7 +468,7 @@ YR_STRING* yr_parser_reduce_string_declaration(
   // Determine if a string with the same identifier was already defined
   // by searching for the identifier in string_table.
 
-  string = yr_hash_table_lookup(
+  string = (YR_STRING*) yr_hash_table_lookup(
       compiler->strings_table,
       identifier,
       NULL);

-- 
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