[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12449] trunk/blender/source/blender/src/ editipo.c: Bugfix - Ipo-Editor Scaling:

Emil Brink emil at obsession.se
Thu Nov 1 18:35:06 CET 2007


[...]
> > > +   adjusted= MEM_callocN(sizeof(char),
> > "beztmap_adjusted_map");
>
> That's missing a " * t->total" to have an array of the
> right size.

I believe Alexander's point was that since sizeof (char) == 1 by
definition, there is no point in including it. It is meaningless
clutter, that makes the code harder to read and maintain, and also
makes people who do know this twitchy. :)

Regards,

/Emil


More information about the Bf-committers mailing list