avsm/ocaml-cstruct — pull request #19 by djs55 (2013-12-10 21:55:23+00:00)
Title: Bounds checks: add (failing) unit tests, then fix them

The fixes stop accepting bogus -ve values to functions 'sub', 'shift', 'add_len', 'set_len'.