mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Minor
This commit is contained in:
1 parent
6dd46fa598
commit
df1c7d5b60
2 files changed
+4
-3
No files matched your search
@@ -740,8 +740,6 @@ template <typename Type>
|
||||
struct Offset : Type
|
||||
{
|
||||
inline bool is_null (void) const { return 0 == *this; }
|
||||
public:
|
||||
DEFINE_SIZE_STATIC (sizeof(Type));
|
||||
|
||||
inline void *serialize (hb_serialize_context_t *c, const void *base)
|
||||
{
|
||||
@@ -749,6 +747,9 @@ struct Offset : Type
|
||||
this->set ((char *) t - (char *) base); /* TODO(serialize) Overflow? */
|
||||
return t;
|
||||
}
|
||||
|
||||
public:
|
||||
DEFINE_SIZE_STATIC (sizeof(Type));
|
||||
};
|
||||
|
||||
typedef Offset<HBUINT16> Offset16;
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ _hb_subset_face_data_destroy (void *user_data)
|
||||
{
|
||||
hb_subset_face_data_t *data = (hb_subset_face_data_t *) user_data;
|
||||
|
||||
for (int i = 0; i < data->tables.len; i++)
|
||||
for (unsigned int i = 0; i < data->tables.len; i++)
|
||||
hb_blob_destroy (data->tables[i].blob);
|
||||
|
||||
data->tables.finish ();
|
||||
|
||||
Reference in new issue
Block a user