Skip to content

Commit

Permalink
misc: allow kernel names to start with x
Browse files Browse the repository at this point in the history
Fixes GH issue gnuradio#59
  • Loading branch information
n-west committed Dec 21, 2015
1 parent af43449 commit a13c580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qa_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static void get_signatures_from_name(std::vector<volk_type_t> &inputsig,
if(side == SIDE_INPUT) inputsig.push_back(type);
else outputsig.push_back(type);
} catch (...){
if(token[0] == 'x') { //it's a multiplier
if(token[0] == 'x' && (token.size() > 1) && (token[1] > '0' || token[1] < '9')) { //it's a multiplier
if(side == SIDE_INPUT) assert(inputsig.size() > 0);
else assert(outputsig.size() > 0);
int multiplier = boost::lexical_cast<int>(token.substr(1, token.size()-1)); //will throw if invalid
Expand Down

0 comments on commit a13c580

Please sign in to comment.