From: eb Date: Wed, 15 Jul 2009 01:18:56 +0000 (+0000) Subject: Minor optimation, assume well formed list as common case (c1255 from Stefan Brüns) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=962e22878b5ef6aa3280fafefb2732db84a69258;p=debian%2Fgnuradio Minor optimation, assume well formed list as common case (c1255 from Stefan Brüns) git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11436 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/pmt/src/lib/pmt.cc b/pmt/src/lib/pmt.cc index f233a139..e854e275 100644 --- a/pmt/src/lib/pmt.cc +++ b/pmt/src/lib/pmt.cc @@ -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){