Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update cairo.c #4

Closed
wants to merge 1 commit into from

3 participants

@swen100

removes warning: initialization discards âconstâ qualifier from pointer target type [enabled by default]

@swen100 swen100 Update cairo.c
removes warning: initialization discards âconstâ qualifier from pointer target type [enabled by default]
f0ba6b8
@derickr

There are some whitespace errors (it uses tabs, not spaces), but other than that, this looks good to me.

@auroraeosrose

This was fixed as part of a478ba2

@swen100 swen100 referenced this pull request
Closed

fix segfaults and memleaks #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 4, 2013
  1. @swen100

    Update cairo.c

    swen100 authored
    removes warning: initialization discards âconstâ qualifier from pointer target type [enabled by default]
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 cairo.c
View
4 cairo.c
@@ -614,8 +614,8 @@ ZEND_END_ARG_INFO()
#if defined(CAIRO_HAS_FT_FONT) && defined(HAVE_FREETYPE)
const char* php_cairo_get_ft_error(int error TSRMLS_DC) {
- int i;
- php_cairo_ft_error *current_error = php_cairo_ft_errors;
+
+ php_cairo_ft_error *current_error = (php_cairo_ft_error *)php_cairo_ft_errors;
while (current_error->err_msg != NULL) {
if (current_error->err_code == error) {
Something went wrong with that request. Please try again.