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

sfogoros sfogoros at att.net
Thu Nov 1 18:51:01 CET 2007


Um, how many bytes is a unicode char equal to? Does C have nchar and 
would that differentiate between sizeof (char) == 1 and sizeof (nchar) 
== 2? I was just wondering ...

Emil Brink wrote:
> [...]
>>>> +   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
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
> 


More information about the Bf-committers mailing list