Author: eb
Date: 2007-09-05 10:56:30 -0600 (Wed, 05 Sep 2007)
New Revision: 6316
Modified:
gnuradio/trunk/gnuradio-core/src/lib/general/gr_map_bb.cc
Log:
Applied patch from Richard Alimi
Modified: gnuradio/trunk/gnuradio-core/src/lib/general/gr_map_bb.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_map_bb.cc 2007-09-05
16:54:54 UTC (rev 6315)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_map_bb.cc 2007-09-05
16:56:30 UTC (rev 6316)
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2006 Free Software Foundation, Inc.
+ * Copyright 2006,2007 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -41,7 +41,7 @@
for (int i = 0; i < 0x100; i++)
d_map[i] = i;
- unsigned int size = std::max((size_t) 0x100, map.size());
+ unsigned int size = std::min((size_t) 0x100, map.size());
for (unsigned int i = 0; i < size; i++)
d_map[i] = map[i];
}
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio