From d17bbd014545cd7fb8c763f8c56994801eb35299 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 13 Jul 2011 09:47:51 +0000
Subject: [PATCH] Added typecast to eliminate volatile type mistmatch warning.

---
 src/sbbs3/js_internal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/js_internal.c b/src/sbbs3/js_internal.c
index 4abb042da1..23ce78a8ba 100644
--- a/src/sbbs3/js_internal.c
+++ b/src/sbbs3/js_internal.c
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @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			*
  * 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)
 	switch(tiny) {
 		case PROP_TERMINATED:
 			if(branch->terminated!=NULL)
-				JS_ValueToBoolean(cx, *vp, branch->terminated);
+				JS_ValueToBoolean(cx, *vp, (int *)branch->terminated);
 			break;
 		case PROP_AUTO_TERMINATE:
 			JS_ValueToBoolean(cx,*vp,&branch->auto_terminate);
-- 
GitLab