From 962e22878b5ef6aa3280fafefb2732db84a69258 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 15 Jul 2009 01:18:56 +0000 Subject: 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 --- pmt/src/lib/pmt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pmt/src') diff --git a/pmt/src/lib/pmt.cc b/pmt/src/lib/pmt.cc index f233a1398..e854e2756 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){ -- cgit