[asterisk-commits] dlee: branch dlee/stasis-forward-optimization r400017 - /team/dlee/stasis-for...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 27 16:52:55 CDT 2013


Author: dlee
Date: Fri Sep 27 16:52:54 2013
New Revision: 400017

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400017
Log:
Swapped order of comparator args

Modified:
    team/dlee/stasis-forward-optimization/include/asterisk/vector.h

Modified: team/dlee/stasis-forward-optimization/include/asterisk/vector.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-forward-optimization/include/asterisk/vector.h?view=diff&rev=400017&r1=400016&r2=400017
==============================================================================
--- team/dlee/stasis-forward-optimization/include/asterisk/vector.h (original)
+++ team/dlee/stasis-forward-optimization/include/asterisk/vector.h Fri Sep 27 16:52:54 2013
@@ -145,7 +145,7 @@
 	size_t idx;							\
 	typeof(value) __value = (value);				\
 	for (idx = 0; idx < (vec).current; ++idx) {			\
-		if (cmp(__value, (vec).elems[idx])) {			\
+		if (cmp((vec).elems[idx], __value)) {			\
 			ast_vector_remove_unordered((vec), idx);	\
 			res = 0;					\
 			break;						\




More information about the asterisk-commits mailing list