as Jeff writes, the code will work with the "short cast" applied to the entire addition expression.
WHY?: because the compiler will convert all types in an integer maths expression to the "int" type (if the types aren't int or long). So your "a" and "b" are temporarily copied to ints during the addtion process. You need to recast the entire expression, just like Jeff suggests.
Stuart [ December 30, 2005: Message edited by: Stuart Goss ]