Permalink
Browse files

[Extension] Supress compilation warning.

  • Loading branch information...
1 parent f9a7dfd commit 716279c529998ce693246d03213e1720c49c95c2 @fabiopelosin fabiopelosin committed Feb 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/xcodeproj/xcodeproj_ext.c
View
2 ext/xcodeproj/xcodeproj_ext.c
@@ -168,7 +168,7 @@ str_to_url(VALUE path) {
#else
VALUE p = rb_String(path);
#endif
- CFURLRef fileURL = CFURLCreateFromFileSystemRepresentation(NULL, RSTRING_PTR(p), RSTRING_LEN(p), false);
+ CFURLRef fileURL = CFURLCreateFromFileSystemRepresentation(NULL, (const UInt8 *)RSTRING_PTR(p), RSTRING_LEN(p), false);
if (!fileURL) {
rb_raise(rb_eArgError, "Unable to create CFURL from `%s'.", RSTRING_PTR(rb_inspect(path)));
}

0 comments on commit 716279c

Please sign in to comment.