-
Notifications
You must be signed in to change notification settings - Fork 617
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
Fix conversion warnings #6
Labels
Milestone
Comments
Can you mention which particular platform and/or compiler is emitting these?
|
This is on fedora 20 using gcc (g++), see also that I am setting the -Wconversion flag |
Confirming this on Fedora 20, building like so: |
nigels-com
pushed a commit
that referenced
this issue
Jul 14, 2014
I pushed a fix for this into the master branch, just now. |
chkob
pushed a commit
to chkob/glew
that referenced
this issue
Feb 23, 2018
Add missing libraries on linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
several warnings are spotted by this compilation flag, i.e:
../../dcvtest/glew.cpp: In function ‘const GLubyte* glewGetErrorString(GLenum)’:
../../dcvtest/glew.cpp:13535:76: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
const int max_error = sizeof(_glewErrorString)/sizeof(_glewErrorString) - 1;
^
../../dcvtest/glew.cpp: In function ‘const GLubyte glewGetString(GLenum)’:
../../dcvtest/glew.cpp:13549:67: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
const int max_string = sizeof(_glewString)/sizeof(*_glewString) - 1;
The text was updated successfully, but these errors were encountered: