[Forensics-changes] [yara] 105/160: Add missing typecasts

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:23 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 95c78d7c69297a7b316c1747164d078bc1517e09
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue May 5 14:49:14 2015 +0200

    Add missing typecasts
---
 yara-python/yara-python.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index c62518f..ef94382 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -655,9 +655,9 @@ static size_t flo_write(
 
     PyObject* result = PyObject_CallMethod(
     #if PY_MAJOR_VERSION >= 3
-        (PyObject*) user_data, "write", "y#", ptr + i * size, size);
+        (PyObject*) user_data, "write", "y#", (char*) ptr + i * size, size);
     #else
-        (PyObject*) user_data, "write", "s#", ptr + i * size, size);
+        (PyObject*) user_data, "write", "s#", (char*) ptr + i * size, size);
     #endif
 
     PyGILState_Release(gil_state);

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