svn commit: samba r16728 - in trunk/source/web: .

vlendec at samba.org vlendec at samba.org
Sat Jul 1 11:58:27 GMT 2006


Author: vlendec
Date: 2006-07-01 11:58:26 +0000 (Sat, 01 Jul 2006)
New Revision: 16728

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16728

Log:
Comparing two floats for equality is kinda silly... ;-)
Modified:
   trunk/source/web/neg_lang.c


Changeset:
Modified: trunk/source/web/neg_lang.c
===================================================================
--- trunk/source/web/neg_lang.c	2006-07-01 10:55:15 UTC (rev 16727)
+++ trunk/source/web/neg_lang.c	2006-07-01 11:58:26 UTC (rev 16728)
@@ -57,8 +57,8 @@
 	struct pri_list *a = (struct pri_list *)x;
 	struct pri_list *b = (struct pri_list *)y;
 	if (a->pri > b->pri) return -1;
-	if (a->pri == b->pri) return 0;
-	return 1;
+	if (a->pri < b->pri) return 1;
+	return 0;
 }
 
 /*



More information about the samba-cvs mailing list