summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-09-22 21:09:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-09-22 21:09:49 (GMT)
commit430aad874900f525c67a5aa5de9e6012a64ff603 (patch)
treecaed7f7ee23290e44ca06c56baa7e9d7c60dff6b /plugins
parent735effa6ee2ebd22bf6421da71ed9aa541980130 (diff)
Fix runtime Python warnings for all # variants of formats.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/analysis/contents/memory.c2
-rw-r--r--plugins/yaml/python/reader.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/analysis/contents/memory.c b/plugins/pychrysalide/analysis/contents/memory.c
index 4782445..e0ab267 100644
--- a/plugins/pychrysalide/analysis/contents/memory.c
+++ b/plugins/pychrysalide/analysis/contents/memory.c
@@ -61,7 +61,7 @@ static PyObject *py_memory_content_new(PyTypeObject *type, PyObject *args, PyObj
{
PyObject *result; /* Instance à retourner */
const char *data; /* Tampon interne de Python */
- int length; /* Taille utilisé de ce tampon */
+ Py_ssize_t length; /* Taille utilisé de ce tampon */
int ret; /* Bilan de lecture des args. */
GBinContent *content; /* Version GLib du contenu */
diff --git a/plugins/yaml/python/reader.c b/plugins/yaml/python/reader.c
index f80623f..74fd2b3 100644
--- a/plugins/yaml/python/reader.c
+++ b/plugins/yaml/python/reader.c
@@ -73,7 +73,7 @@ static PyObject *py_yaml_reader_new_from_content(PyObject *self, PyObject *args)
{
PyObject *result; /* Instance à retourner */
const char *content; /* Contenu brut au format Yaml */
- int length; /* Taille de ce contenu */
+ Py_ssize_t length; /* Taille de ce contenu */
int ret; /* Bilan de lecture des args. */
GYamlReader *reader; /* Création GLib à transmettre */