src/data/data-out.c: Added assertion to catch negative values
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 20 Sep 2012 09:22:12 +0000 (11:22 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 20 Sep 2012 09:22:12 +0000 (11:22 +0200)
commit83868d9b4cfc2259dad94c8de72f03f918995cfd
treec8685269699799b15f68b195bdb986e504562ec0
parentacc57a6e232eb2b462d4753a65478ce407e20f63
src/data/data-out.c: Added assertion to catch negative values

If the contents of string does not contain a '.', then integer_digits
will end up negative, thus causing a crash later.  This change adds
an assertion to catch this condition and thus make the diagnosis easier
should it ever occur.
src/data/data-out.c