commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11436 - gnuradio/trunk/pmt/src/lib


From: eb
Subject: [Commit-gnuradio] r11436 - gnuradio/trunk/pmt/src/lib
Date: Tue, 14 Jul 2009 19:18:56 -0600 (MDT)

Author: eb
Date: 2009-07-14 19:18:56 -0600 (Tue, 14 Jul 2009)
New Revision: 11436

Modified:
   gnuradio/trunk/pmt/src/lib/pmt.cc
Log:
Minor optimation, assume well formed list as common case (c1255 from Stefan 
Br?\195?\188ns)


Modified: gnuradio/trunk/pmt/src/lib/pmt.cc
===================================================================
--- gnuradio/trunk/pmt/src/lib/pmt.cc   2009-07-15 00:59:19 UTC (rev 11435)
+++ gnuradio/trunk/pmt/src/lib/pmt.cc   2009-07-15 01:18:56 UTC (rev 11436)
@@ -864,7 +864,7 @@
 pmt_t
 pmt_nthcdr(size_t n, pmt_t list)
 {
-  if (!(pmt_is_null(list) || pmt_is_pair(list)))
+  if (!(pmt_is_pair(list) || pmt_is_null(list)))
     throw pmt_wrong_type("pmt_nthcdr", list);
     
   while (n > 0){





reply via email to

[Prev in Thread] Current Thread [Next in Thread]