Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for language changes #29

Merged
merged 1 commit into from Aug 22, 2013
Merged

update for language changes #29

merged 1 commit into from Aug 22, 2013

Conversation

@aydinkim
Copy link
Contributor

aydinkim commented Aug 21, 2013

Since language update.

glut.rs Outdated
@@ -80,7 +79,7 @@ pub fn init() {
unsafe {
let argc = 0 as c_int;
let glut = ~"glut";
let command = glut.as_bytes_with_null();
let command = glut.as_bytes();

This comment has been minimized.

Copy link
@metajack

metajack Aug 21, 2013

Contributor

as_bytes() does not include the null terminator. This seems like a problem.

This comment has been minimized.

Copy link
@aydinkim

aydinkim Aug 21, 2013

Author Contributor

I couldn't find out the same rust embedded function of that, yet.

This comment has been minimized.

Copy link
@metajack

metajack Aug 21, 2013

Contributor

to_c_str() is probably what you want.

This comment has been minimized.

Copy link
@aydinkim

aydinkim Aug 21, 2013

Author Contributor

Ok, I will fix it. Thanks!

@aydinkim
Copy link
Contributor Author

aydinkim commented Aug 21, 2013

@metajack I had fixed and submitted a PR again.

@metajack
Copy link
Contributor

metajack commented Aug 22, 2013

Looks good. I have only minor suggestions. I'll r+ once you address these.

metajack added a commit that referenced this pull request Aug 22, 2013
update for language changes
@metajack metajack merged commit 24939d6 into servo:master Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.