summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/Swig/scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Swig/scanner.c b/Source/Swig/scanner.c
index b0d608c9e..227a1d00c 100644
--- a/Source/Swig/scanner.c
+++ b/Source/Swig/scanner.c
@@ -336,7 +336,7 @@ static void brackets_reset(Scanner *s) {
* Usually called when '(' is found.
* ----------------------------------------------------------------------------- */
static void brackets_push(Scanner *s) {
- int *newInt = malloc(sizeof(int));
+ int *newInt = (int *)malloc(sizeof(int));
*newInt = 0;
Push(s->brackets, NewVoid(newInt, free));
}