Bustage fix for bug 1004098 (m-c), cast the length field to make it non-ambiguous. rs=bustage fix for CLOSED TREE