Commits

Anonymous committed f15093e

cast some of pointers. (the patch of FS#187 applied)

Comments (0)

Files changed (1)

 	}
 
 	while (tmp_list) {
-		PangoAttribute *attr = tmp_list->data;
+		PangoAttribute *attr = (PangoAttribute *)tmp_list->data;
 
 		switch (attr->klass->type) {
 		case PANGO_ATTR_UNDERLINE:
 			if (uline) {
-				*uline = ((PangoAttrInt *)attr)->value;
+				*uline = (PangoUnderline)((PangoAttrInt *)attr)->value;
 			}
 			break;
 
 static FT_Bitmap * gdPangoCreateFTBitmap(int width, int height)
 {
 	FT_Bitmap *bitmap;
-	bitmap = g_malloc(sizeof(FT_Bitmap));
+	bitmap = (FT_Bitmap *)g_malloc(sizeof(FT_Bitmap));
 	gdPangoSetFTBitmap(bitmap, width, height);
 	bitmap->buffer = g_new0(guchar, bitmap->pitch * bitmap->rows);
 	return bitmap;
 {
 	if (bitmap->width != width || bitmap->rows != height) {
 		gdPangoSetFTBitmap(bitmap, width, height);
-		bitmap->buffer = g_realloc(bitmap->buffer, bitmap->pitch * bitmap->rows);
+		bitmap->buffer = (unsigned char *)g_realloc( bitmap->buffer, bitmap->pitch * bitmap->rows);
 	}
 	gdPangoCleanFTBitmap(bitmap);
 }
  */
 gdPangoContext* gdPangoCreateContext(void)
 {
-	gdPangoContext *context = g_malloc(sizeof(gdPangoContext));
+	gdPangoContext *context = (gdPangoContext *)g_malloc(sizeof(gdPangoContext));
 	G_CONST_RETURN char *charset;
 
 	context->font_map = pango_ft2_font_map_new();
 	int n, r = GD_FAILURE;
 
 	fcBlanks = FcBlanksCreate();
-	fcPattern = FcFreeTypeQuery(fontlist, 0, fcBlanks, &numFonts);
+	fcPattern = FcFreeTypeQuery((FcChar8 *)fontlist, 0, fcBlanks, &numFonts);
 	if (!fcPattern) {
 		if (error) *error = GD_PANGO_ERROR_FC_FT;
 		goto fail0;
 		if (error) *error = GD_PANGO_ERROR_FORMAT;
 		goto fail1;
 	}
-	font_desc = g_malloc(n + 1);
+	font_desc = (char *)g_malloc(n + 1);
 	n = snprintf(font_desc, n + 1, "%s %f", fcFamilyName.u.s, ptsize);
 	if (n <= 0) {
 		if (error) *error = GD_PANGO_ERROR_FORMAT;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.