Permalink
Browse files

dictionary is immutable, and add returns a new dict... ok

  • Loading branch information...
1 parent 7620329 commit 075bf6ec7e9f8169d9dee59fb9e74d13146b6ddb @guruofquality committed Sep 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/uhd_amsg_source.cc
View
@@ -72,10 +72,10 @@ class uhd_amsg_source_impl : public uhd_amsg_source{
pmt::pmt_from_uint64(md.time_spec.get_full_secs()),
pmt::pmt_from_double(md.time_spec.get_frac_secs())
);
- pmt::pmt_dict_add(value_dict, TIME_KEY, timestamp);
+ value_dict = pmt::pmt_dict_add(value_dict, TIME_KEY, timestamp);
}
- pmt::pmt_dict_add(value_dict, CHAN_KEY, pmt::pmt_from_uint64(md.channel));
- pmt::pmt_dict_add(value_dict, EVENT_KEY, pmt::pmt_from_uint64(md.event_code));
+ value_dict = pmt::pmt_dict_add(value_dict, CHAN_KEY, pmt::pmt_from_uint64(md.channel));
+ value_dict = pmt::pmt_dict_add(value_dict, EVENT_KEY, pmt::pmt_from_uint64(md.event_code));
this->post_msg(0, AMSG_KEY, value_dict, _id);
}

0 comments on commit 075bf6e

Please sign in to comment.