Skip to content
Snippets Groups Projects
Commit d17bbd01 authored by rswindell's avatar rswindell
Browse files

Added typecast to eliminate volatile type mistmatch warning.

parent 9018cb9b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -135,7 +135,7 @@ static JSBool js_set(JSContext *cx, JSObject *obj, jsval id, jsval *vp) ...@@ -135,7 +135,7 @@ static JSBool js_set(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
switch(tiny) { switch(tiny) {
case PROP_TERMINATED: case PROP_TERMINATED:
if(branch->terminated!=NULL) if(branch->terminated!=NULL)
JS_ValueToBoolean(cx, *vp, branch->terminated); JS_ValueToBoolean(cx, *vp, (int *)branch->terminated);
break; break;
case PROP_AUTO_TERMINATE: case PROP_AUTO_TERMINATE:
JS_ValueToBoolean(cx,*vp,&branch->auto_terminate); JS_ValueToBoolean(cx,*vp,&branch->auto_terminate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment