On Thu, 2020-06-18 at 09:19 +0200, Markus Elfring wrote:
> > > > > +T x;
> > > > 
> > > > Change the + to ++
> > 
> > Heh, something funny happened
> > 
> > + u16 *foo;
> > + u16[2] bar;
> > 
> > ... some code ...
> > 
> > -u16 *foo;
> > -u16 *bar[2];
> > 
> > 
> > What happened to the array index?
> > 
> > I guess ... at some level I even understand it, that's a property of the
> > type, and I was moving the type around. But I really didn't expect that
> 
> I find that there are further software development challenges to clarify.
> 
> You tried it out to move the variable “bar” which is an array of two pointers.

Oops. I just mistyped that when transcribing it to email... It was 'u16
bar[2];' in the original.

johannes

_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to