From 92ace5497f5af2c39f65ebfcccf544ca28830bae Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 22 Jun 2014 22:47:17 -0700 Subject: [PATCH] More MSVC fixes. --- sourcepawn/compiler/sc1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 84500303..5ee54d49 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -3590,13 +3590,14 @@ methodmap_method_t *parse_property(methodmap_t *map) { declinfo_t decl; token_ident_t ident; + methodmap_method_t *method; if (!parse_decl(&decl, NULL, DECLFLAG_ONLY_NEW_TYPES)) return NULL; if (!needsymbol(&ident)) return NULL; - methodmap_method_t *method = (methodmap_method_t *)calloc(1, sizeof(methodmap_method_t)); + method = (methodmap_method_t *)calloc(1, sizeof(methodmap_method_t)); strcpy(method->name, ident.name); method->target = NULL; method->getter = NULL;