summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/arch/immediate.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/pychrysalide/arch/immediate.c b/plugins/pychrysalide/arch/immediate.c
index f1ec125..794571d 100644
--- a/plugins/pychrysalide/arch/immediate.c
+++ b/plugins/pychrysalide/arch/immediate.c
@@ -25,6 +25,7 @@
#include "immediate.h"
+#include <assert.h>
#include <pygobject.h>
@@ -181,6 +182,14 @@ static PyObject *py_imm_operand_get_value(PyObject *self, void *closure)
g_imm_operand_get_value(operand, size, &sval64);
result = PyLong_FromLongLong(sval64);
break;
+
+ /* Pour GCC... */
+ default:
+ assert(false);
+ result = Py_None;
+ Py_INCREF(result);
+ break;
+
}
return result;