summaryrefslogtreecommitdiff
path: root/sfntly
diff options
context:
space:
mode:
Diffstat (limited to 'sfntly')
-rw-r--r--sfntly/port/type.h2
-rw-r--r--sfntly/table/bitmap/bitmap_glyph_info.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfntly/port/type.h b/sfntly/port/type.h
index 20a5ba8..9f82a5a 100644
--- a/sfntly/port/type.h
+++ b/sfntly/port/type.h
@@ -41,7 +41,7 @@
#include <stdint.h>
#endif
-#include <cstddef>
+#include <stddef.h>
#include <vector>
#include <set>
diff --git a/sfntly/table/bitmap/bitmap_glyph_info.cc b/sfntly/table/bitmap/bitmap_glyph_info.cc
index ab9953b..a299b3e 100644
--- a/sfntly/table/bitmap/bitmap_glyph_info.cc
+++ b/sfntly/table/bitmap/bitmap_glyph_info.cc
@@ -52,7 +52,7 @@ bool BitmapGlyphInfo::operator==(const BitmapGlyphInfo& rhs) const {
bool BitmapGlyphInfo::operator==(BitmapGlyphInfo* rhs) {
if (rhs == NULL) {
- return this == NULL;
+ return false; // Well defined C++ code's this is always not null.
}
return (format_ == rhs->format() &&
glyph_id_ == rhs->glyph_id() &&