mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Fix two more -Wshadow warnings
https://bugzilla.mozilla.org/show_bug.cgi?id=1215894
This commit is contained in:
1 parent
4a6b1eedbb
commit
ce889189c1
1 file changed
+5
-5
@@ -399,9 +399,9 @@ struct Sanitizer
|
||||
|
||||
struct hb_serialize_context_t
|
||||
{
|
||||
inline hb_serialize_context_t (void *start, unsigned int size)
|
||||
inline hb_serialize_context_t (void *start_, unsigned int size)
|
||||
{
|
||||
this->start = (char *) start;
|
||||
this->start = (char *) start_;
|
||||
this->end = this->start + size;
|
||||
|
||||
this->ran_out_of_room = false;
|
||||
@@ -495,10 +495,10 @@ struct hb_serialize_context_t
|
||||
return reinterpret_cast<Type *> (&obj);
|
||||
}
|
||||
|
||||
inline void truncate (void *head)
|
||||
inline void truncate (void *new_head)
|
||||
{
|
||||
assert (this->start < head && head <= this->head);
|
||||
this->head = (char *) head;
|
||||
assert (this->start < new_head && new_head <= this->head);
|
||||
this->head = (char *) new_head;
|
||||
}
|
||||
|
||||
unsigned int debug_depth;
|
||||
|
||||
Reference in new issue
Block a user