Subject: | Compilation failure in XS_Font__FreeType__Glyph_char_code |
I'm seeing this compilation failure with gcc 4.1.3:
FreeType.xs: In function ‘XS_Font__FreeType__Glyph_char_code’:
FreeType.xs:808: error: invalid lvalue in assignment
The attached patch fixes this for me.
There are also a few test suite failures; if you're interested in seeing
them, let me know.
Subject: | ft.patch |
--- FreeType.xs.orig 2007-10-24 18:08:39.000000000 +0200
+++ FreeType.xs 2007-10-24 17:05:41.000000000 +0200
@@ -805,7 +805,8 @@ qefft2_glyph_char_code (Font_FreeType_Gl
char_code = FT_Get_First_Char(face, &glyph_idx);
while (glyph_idx) {
if (glyph_idx == glyph->index) {
- RETVAL = newSVuv((UV) glyph->char_code = char_code);
+ glyph->char_code = char_code;
+ RETVAL = newSVuv((UV) glyph->char_code);
break;
}
char_code = FT_Get_Next_Char(face, char_code, &glyph_idx);