Re: [Quickfix-developers] MiscFeeType (139)
Brought to you by:
orenmnero
From: Malinka R. <ael...@gm...> - 2009-02-18 00:46:38
|
On Tue, Feb 17, 2009 at 16:38, Grant Birchmeier <gbi...@co...> wrote: > In C++, a char can be treated like an int. Values 10, 11, and 12 can > be assigned to a char without a problem. > > If you have C++ code such as "char x = 8;", then x will not be storing > the character "8", but the unsigned integer value 8, which is intended > to be interpreted as the ASCII character with code 8 (see > http://www.asciitable.com/). yes and 8 != '8' (56), and in QF the 139 value of "Markup" is '8' 56 if displayed as an int. If the FIX spec expected a integral value of 8 to be interpreted as Backspace, then they could not have a value of 1 (Start of Header) which is the FIX field delimiter > In the FIX spec, value 139 is specified as a char. Which would be the a single Ascii value not an integer between 0-255 otherwise they would have specified the Field as an integer. > Note: A char and an int are not exactly the same. On many (most?) > implementations, a char is 8 bits wide, and thus can only range from > 0-255. > Also this does not answer the question of why another source would refer to the field as being of type Int |