Mercurial > pub > dyncall > bindings
changeset 23:87fd9f34eaa0
- pre-C99 syntax fix
author | cslag |
---|---|
date | Sun, 22 May 2016 20:55:57 +0200 |
parents | 4ee8d6aa7721 |
children | 681db37a300c |
files | java/jdc/org_dyncall_DC.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/java/jdc/org_dyncall_DC.c Sat Apr 09 18:18:34 2016 -0500 +++ b/java/jdc/org_dyncall_DC.c Sun May 22 20:55:57 2016 +0200 @@ -9,7 +9,8 @@ static const char** gc_cstr = NULL; static void cleanupHeldStrings(JNIEnv *pEnv) { - for(int i=0; i<gc_snum; ++i) + int i; + for(i=0; i<gc_snum; ++i) (*pEnv)->ReleaseStringUTFChars(pEnv, gc_jstr[i], gc_cstr[i]); free(gc_jstr); gc_jstr = NULL;