Commit 783a624e by Jamie Madill

Fix printing of size of matrix and vectors in the compiler.

We would print non-casted unsigned char output, giving an an ascii code on output, instead of printing the integer value of the size field. BUG=angle:539 Change-Id: I963c297d01df6283825d684ada7a34fd535f2550 Reviewed-on: https://chromium-review.googlesource.com/180650Reviewed-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Commit-Queue: Nicolas Capens <nicolascapens@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org>
parent e98df4fd
...@@ -44,9 +44,9 @@ TString TType::getCompleteString() const ...@@ -44,9 +44,9 @@ TString TType::getCompleteString() const
if (array) if (array)
stream << "array[" << getArraySize() << "] of "; stream << "array[" << getArraySize() << "] of ";
if (matrix) if (matrix)
stream << size << "X" << size << " matrix of "; stream << static_cast<int>(size) << "X" << static_cast<int>(size) << " matrix of ";
else if (size > 1) else if (size > 1)
stream << size << "-component vector of "; stream << static_cast<int>(size) << "-component vector of ";
stream << getBasicString(); stream << getBasicString();
return stream.str(); return stream.str();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment