rev 341 - trunk/src

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-04-13 23:11:01 -0400 (Tue, 13 Apr 2004)
New Revision: 341

Modified:
   trunk/src/builtins-dict.c
Log:
Fix some compiler warnings


Modified: trunk/src/builtins-dict.c
===================================================================
--- trunk/src/builtins-dict.c	2004-04-14 02:13:13 UTC (rev 340)
+++ trunk/src/builtins-dict.c	2004-04-14 03:11:01 UTC (rev 341)
@@ -280,7 +280,7 @@
 
 DEF(Dict, has_key_QUES, FPARM1(k, NULL)) {
 	obj_p res;
-	if (res = dict_item(ist, self, parms[1])) {
+	if ((res = dict_item(ist, self, parms[1]))) {
 		del_unlock(res);
 		return OBJ(PR_TRUE);
 	}
@@ -289,7 +289,7 @@
 
 DEF(Dict, get, FPARM2(k, NULL, x, OBJ(NONE))) {
 	obj_p res;
-	if (res = dict_item(ist, self, parms[1])) {
+	if ((res = dict_item(ist, self, parms[1]))) {
 		return res;
 	}
 	return parms[3];
@@ -297,7 +297,7 @@
 
 DEF(Dict, __rin__QUES, FORM_RPARAM) {
 	obj_p res;
-	if (res = dict_item(ist, self, parms[1])) {
+	if ((res = dict_item(ist, self, parms[1]))) {
 		del_unlock(res);
 		return OBJ(PR_TRUE);
 	}
@@ -306,7 +306,7 @@
 
 DEF(Dict, __rnotin__QUES, FORM_RPARAM) {
 	obj_p res;
-	if (res = dict_item(ist, self, parms[1])) {
+	if ((res = dict_item(ist, self, parms[1]))) {
 		del_unlock(res);
 		return OBJ(PR_FALSE);
 	}
@@ -432,7 +432,7 @@
 
 DEF(Dict, setdefault_BANG, FPARM2(k, NULL, x, OBJ(NONE))) {
 	obj_p res;
-	if (res = dict_item(ist, self, parms[1])) {
+	if ((res = dict_item(ist, self, parms[1]))) {
 		return res;
 	}
 	def_write_lock(self);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.