[PATCH] osmocon: correct parsing of -m

Peter Stuge peter at stuge.se
Wed Dec 14 08:33:58 CET 2011


Sylvain Munaut wrote:
> > That's only certain if one enum value is defined to >= 0, and no
> > later enum is defined to < 0. If no enum value is defined at all,
> > then they may very well be negative.
> 
> Oh, I actually mis-read this in my last answer.
> 
> I'm pretty sure that the first value defaults to 0 if not forced to
> another value.

I think not neccessarily so. If there is no specified value for any
enum value then IIRC they are all undefined, and could thus also be
negative. Bad.


//Peter



More information about the baseband-devel mailing list