]> git.donarmstrong.com Git - lilypond.git/commitdiff
Don't verify result of String_convert::dec2int
authorDavid Kastrup <dak@gnu.org>
Wed, 3 Sep 2014 15:44:05 +0000 (17:44 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 8 Sep 2014 07:33:17 +0000 (09:33 +0200)
The error behavior is not useful and triggers on things like "00".

flower/string-convert.cc

index 745a98ecea6a28bec022316114991f6153eca513..e3e8bc824da7e3cc4b93937b093d07f04672d603 100644 (file)
@@ -85,8 +85,6 @@ String_convert::dec2int (const string &dec_string)
   if (!sscanf (dec_string.c_str (), "%ld", &l))
     assert (false);
 
-  assert (form_string ("%ld", l) == dec_string);
-
   return (int)l;
 }