[OT] Fix script to ot-script-tag conversion
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 20 Apr 2011 18:20:00 +0000 (14:20 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 20 Apr 2011 18:20:00 +0000 (14:20 -0400)
src/hb-ot-tag.c

index ecc1882..f7e8c95 100644 (file)
@@ -52,7 +52,7 @@ hb_ot_old_tag_from_script (hb_script_t script)
   }
 
   /* Else, just change first char to lowercase and return */
-  return ((hb_tag_t) script) | 0x02000000;
+  return ((hb_tag_t) script) | 0x20000000;
 }
 
 static hb_script_t
@@ -73,7 +73,7 @@ hb_ot_old_tag_to_script (hb_tag_t tag)
   }
 
   /* Else, just change first char to uppercase and return */
-  return (hb_script_t) (tag & ~0x02000000);
+  return (hb_script_t) (tag & ~0x20000000);
 }
 
 static hb_tag_t