commit | c5cf9bc47d0ee028adbbf9e9f94ca567eec601dc | [log] [tgz] |
---|---|---|
author | Cooper Partin <coopp@microsoft.com> | Thu Aug 06 10:46:48 2015 -0700 |
committer | Jamie Madill <jmadill@chromium.org> | Wed Aug 12 14:13:23 2015 +0000 |
tree | fa7e60efd51fb96ad829b3b6458701dd80cf157d | |
parent | 27446bda2196139b25f836dc8b313b3a8a8c3209 [diff] [blame] |
Fixed compiler warning C4267 'conversion from 'size_t' to 'type', possible loss of data' BUG=angleproject:1120 Change-Id: I01ef10bea7f487c2b394d030c76628f38d2ea645 Reviewed-on: https://chromium-review.googlesource.com/292780 Tested-by: Cooper Partin <coopp@microsoft.com> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/ParseContext.cpp b/src/compiler/translator/ParseContext.cpp index 3700a9c..dd77b63 100644 --- a/src/compiler/translator/ParseContext.cpp +++ b/src/compiler/translator/ParseContext.cpp
@@ -599,7 +599,7 @@ { if (type->isUnsizedArray()) { - type->setArraySize(function.getParamCount()); + type->setArraySize(static_cast<int>(function.getParamCount())); } else if (static_cast<size_t>(type->getArraySize()) != function.getParamCount()) {