- Unbreak the build on 9-STABLE for the i386 arch
PR: 195762 Submitted by: woot-woot@yandex.ru Approved by: FreeBSD@ShaneWare.Biz (maintainer)
This commit is contained in:
parent
32c8545927
commit
ae9154b889
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374903
@ -0,0 +1,11 @@
|
||||
--- src/testshade/testshade.cpp.orig 2014-09-23 05:01:22 UTC
|
||||
+++ src/testshade/testshade.cpp
|
||||
@@ -733,7 +733,7 @@ test_shade (int argc, const char *argv[]
|
||||
int num_layers = 0;
|
||||
shadingsys->getattribute (shadergroup.get(), "num_layers", num_layers);
|
||||
if (num_layers > 0) {
|
||||
- std::vector<const char *> layers (num_layers, NULL);
|
||||
+ std::vector<const char *> layers (size_t(num_layers), NULL);
|
||||
shadingsys->getattribute (shadergroup.get(), "layer_names",
|
||||
TypeDesc(TypeDesc::STRING, num_layers),
|
||||
&layers[0]);
|
Loading…
Reference in New Issue
Block a user