aboutsummaryrefslogtreecommitdiffstats
path: root/src/Texture.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-03 15:50:07 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-03 15:50:07 -0500
commitdd6d1e79df7d48e93ba22551b8858d77d041c197 (patch)
tree08cd205eae4d148d855a088efb1cdf1f7a3822d6 /src/Texture.cpp
parent3c8140152bcf72eb1d64b580bb9c1e139bcbe191 (diff)
enabled werror, wall and wextra (\!)
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r--src/Texture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Texture.cpp b/src/Texture.cpp
index a44f1a7..5e5651d 100644
--- a/src/Texture.cpp
+++ b/src/Texture.cpp
@@ -66,11 +66,11 @@ namespace Texture{
}
Texturec::Texturec(uint amt, ...){
+ va_list fNames;
texState = 0;
image = new GLuint[amt];
- va_list fNames;
va_start(fNames, amt);
- for(int i = 0; i < amt; i++){
+ for(unsigned int i = 0; i < amt; i++){
image[i] = Texture::loadTexture(va_arg(fNames, char *));
}
va_end(fNames);
@@ -79,7 +79,7 @@ Texturec::Texturec(uint amt, ...){
Texturec::Texturec(uint amt,const char **paths){
texState = 0;
image = new GLuint[amt];
- for(int i = 0; i < amt; i++){
+ for(unsigned int i = 0; i < amt; i++){
image[i] = Texture::loadTexture(paths[i]);
}
}