From: Didier 'Ptitjes Date: Fri, 25 Sep 2009 13:47:37 +0000 (+0200) Subject: Fixed string to char* casts in Scanner and SourceFile X-Git-Tag: 0.7.7~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd9803724a0300129016f9b113ac3ecb847ea14b;p=thirdparty%2Fvala.git Fixed string to char* casts in Scanner and SourceFile --- diff --git a/vala/valascanner.vala b/vala/valascanner.vala index 628ad52b2..de90bb5f8 100644 --- a/vala/valascanner.vala +++ b/vala/valascanner.vala @@ -793,7 +793,7 @@ public class Vala.Scanner { } static bool matches (char* begin, string keyword) { - char* keyword_array = keyword; + char* keyword_array = (char*) keyword; long len = keyword.len (); for (int i = 0; i < len; i++) { if (begin[i] != keyword_array[i]) { diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala index c85751767..ee3d28142 100644 --- a/vala/valasourcefile.vala +++ b/vala/valasourcefile.vala @@ -291,7 +291,7 @@ public class Vala.SourceFile { public char* get_mapped_contents () { if (content != null) { - return content; + return (char*) content; } if (mapped_file == null) {