cms-sw/cmssw — pull request #2682 by wmtan (2014-02-28 22:50:15+00:00)
Title: Two more root6 relval fixes

This is a fix for two ROOT6 specific bugs causing relval failures.
1) TypeWithDict::typeOf() is used to strip off array and pointer information to get the underlying type.
It was written returning a dummy type if the original type is not an array or pointer. This is not in itself a bug, because the analogous Reflex function did the same. However,the conditions code as written for ROOT6 assumes that the original type will be returned if the type is not an array or a pointer. The easiest way to fix this for now is to have toType() return the original type.
2) The conditions code assumed incorrectly that TypeWithDict::size() returns the number of elements in the array if the type is an array. It does not. The correct function to call is TypeWithDict::arrayLength().
This pull request changes the call to use arrayLength().
Please merge this promptly unless there are problems.