[langsec-discuss] [nom] dynamic length take!

Richo Healey richo at psych0tik.net
Sun Jun 14 22:13:27 UTC 2015

On 14/06/15 23:58 +0200, Geoffroy Couprie wrote:
>Hi Richo,
>I guess it is about time I make a proper mailing list for nom. There's
>a gitter available ( https://gitter.im/Geal/nom ) but not everybody
>likes that platform. I also answer on IRC freenode and mozilla as
>geal, but I should make a new channel.
>The problem you encountered is that ranges use the usize type, and the
>expression passed to "take" is a u32. I just pushed a fix (
>) and I'll publish a new crate for this tomorrow, once I fix a few
>other issues. In the meantime, you can try to write
>"take!((block_length - 12) as usize)", that should work.
>Sorry for the noise, LangSec friends, I'll create the official
>communication channels. Anyway, take this as a good opportunity to try
>nom and Rust too :)

Thanks for the quick reply!

Hah, I would swear I did actually try that cast, but obviously not enough.

Thanks for that. I can start using Gitter, but an irc channel or list would
be preferable for me.

I'll stop spamming this list now, but thanks for the tip!


More information about the langsec-discuss mailing list