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

silence innocuous -Wsign-compare warning about comparing size_t & int #19915

Merged
merged 1 commit into from
Jan 8, 2017

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Jan 7, 2017

Silences

    CC src/codegen.o
/Users/stevenj/Documents/Code/julia/src/codegen.cpp:4453:23: warning: 
      comparison of integers of different signs: 'size_t' (aka 'unsigned long')
      and 'int' [-Wsign-compare]
                if (i < ctx.nargs && ctx.slots[i].value.isghost)
                    ~ ^ ~~~~~~~~~

warning.

(Could also redefine i as an int, but then you need a cast elsewhere.)

@stevengj stevengj merged commit e693bb2 into JuliaLang:master Jan 8, 2017
@stevengj stevengj deleted the wsign branch January 8, 2017 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant