зеркало из https://github.com/stride3d/freetype.git
[type42] Minor code optimization (again).
* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
This commit is contained in:
Родитель
fcbc82e69e
Коммит
c18c1882c2
|
@ -1,3 +1,9 @@
|
|||
2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[type42] Minor code optimization (again).
|
||||
|
||||
* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
|
||||
|
||||
2012-02-26 Mateusz Jurczyk <mjurczyk@google.com>
|
||||
Werner Lemberg <wl@gnu.org>
|
||||
|
||||
|
|
|
@ -607,9 +607,9 @@
|
|||
goto Fail;
|
||||
}
|
||||
|
||||
/* A string can have a trailing zero byte for padding. Ignore it. */
|
||||
if ( string_size &&
|
||||
string_buf[string_size - 1] == 0 && ( string_size & 1 ) )
|
||||
/* A string can have a trailing zero (odd) byte for padding. */
|
||||
/* Ignore it. */
|
||||
if ( ( string_size & 1 ) && string_buf[string_size - 1] == 0 )
|
||||
string_size--;
|
||||
|
||||
if ( !string_size )
|
||||
|
|
Загрузка…
Ссылка в новой задаче