[type42] Minor code optimization.
* src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of modulo operator.
This commit is contained in:
parent
22fff25385
commit
c42848e6d9
@ -1,3 +1,10 @@
|
||||
2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[type42] Minor code optimization.
|
||||
|
||||
* src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of
|
||||
modulo operator.
|
||||
|
||||
2012-02-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* docs/CHANGES: Updated.
|
||||
|
@ -608,8 +608,8 @@
|
||||
}
|
||||
|
||||
/* A string can have a trailing zero byte for padding. Ignore it. */
|
||||
if ( string_size &&
|
||||
string_buf[string_size - 1] == 0 && ( string_size % 2 == 1 ) )
|
||||
if ( string_size &&
|
||||
string_buf[string_size - 1] == 0 && ( string_size & 1 ) )
|
||||
string_size--;
|
||||
|
||||
if ( !string_size )
|
||||
|
Loading…
Reference in New Issue
Block a user