Skip to content

Commit

Permalink
Merge pull request mono#1056 from ranma42/vc-compat-C90
Browse files Browse the repository at this point in the history
Fix the build on Visual C++
  • Loading branch information
Alex Rønne Petersen committed May 25, 2014
2 parents f2df46f + d6ffe17 commit d61bf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mono/utils/mono-counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ mono_counters_foreach (CountersEnumCallback cb, gpointer user_data)
size = sizeof (type); \
if (buffer_size < size) \
return -1; \
type __var = cb ? ((functype)counter->addr) () : *(type*)counter->addr; \
memcpy (buffer, &__var, size); \
*(type*)buffer = cb ? ((functype)counter->addr) () : *(type*)counter->addr; \
} while (0);

int
Expand Down

0 comments on commit d61bf0d

Please sign in to comment.