]> git.gag.com Git - debian/gnuradio/commitdiff
Minor optimation, assume well formed list as common case (c1255 from Stefan BrĂ¼ns)
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 15 Jul 2009 01:18:56 +0000 (01:18 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 15 Jul 2009 01:18:56 +0000 (01:18 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11436 221aa14e-8319-0410-a670-987f0aec2ac5

pmt/src/lib/pmt.cc

index f233a139812e87bc0c83cf929bdddf0741c350d3..e854e2756f330854ec64616754c2568893bd763f 100644 (file)
@@ -864,7 +864,7 @@ pmt_nth(size_t n, pmt_t list)
 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){