How to construct/bitmatch a signed int value ?

6 views
Skip to first unread message

fcon...@gmail.com

unread,
Jul 13, 2009, 10:09:59 AM7/13/09
to bitstring
Hello,

I tried to compile the following :

let foo = -10 in
BITSTRING { foo : 16 : int,signed}

and got the error :

Unbound value Bitstring.construct_int_be_signed

The same happens if you try bitmatch a value with the signed
qualifier.

Does anyone knows how to write it correctly ?

Thanks

Richard Jones

unread,
Jul 16, 2009, 9:44:56 AM7/16/09
to bits...@googlegroups.com

You just have to write the appropriate construct function. Several of
these are missing because no one ever needed them.

Rich.

--
Richard Jones
Red Hat

Reply all
Reply to author
Forward
0 new messages