diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | translate.cxx | 9 |
2 files changed, 7 insertions, 7 deletions
@@ -1,3 +1,8 @@ +2007-01-10 Martin Hunt <hunt@redhat.com> + + * translate.cxx (mapvar::del): Call the new _stp_map_del + function instead of setting to zero. + 2007-01-01 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Bump version to 0.5.12 for release. diff --git a/translate.cxx b/translate.cxx index d46428f0..58347a59 100644 --- a/translate.cxx +++ b/translate.cxx @@ -514,13 +514,8 @@ struct mapvar } string del (vector<tmpvar> const & indices) const - { - if (type() == pe_string) - return (call_prefix("set", indices) + ", NULL)"); - else if ((type() == pe_long) || (type() == pe_stats)) - return (call_prefix("set", indices) + ", 0)"); - else - throw semantic_error("setting a value of an unsupported map type"); + { + return (call_prefix("del", indices) + ")"); } string exists (vector<tmpvar> const & indices) const |