Minor change to hb_language_t
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 6 Sep 2013 20:20:21 +0000 (16:20 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 6 Sep 2013 21:16:25 +0000 (17:16 -0400)
Let me know if this breaks anyone's anything.

src/hb-common.cc
src/hb-common.h

index 7c6d262..666d77d 100644 (file)
@@ -187,7 +187,7 @@ struct hb_language_item_t {
     return *this;
   }
 
-  void finish (void) { free (lang); }
+  void finish (void) { free ((void *) lang); }
 };
 
 
index 9079b2c..40c1887 100644 (file)
@@ -131,7 +131,7 @@ hb_direction_to_string (hb_direction_t direction);
 
 /* hb_language_t */
 
-typedef struct hb_language_impl_t *hb_language_t;
+typedef const struct hb_language_impl_t *hb_language_t;
 
 /* len=-1 means str is NUL-terminated */
 hb_language_t