Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Error Message
◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Compiler warning (level 1) C4139
'hexnumber' : hex escape sequence is out of range
A hex escape sequence appearing in a character or string constant
was too large to be converted to a character.
If in a string constant, the compiler cast the low byte of the
hexadecimal number to a char. If in a char constant, the compiler
made the cast and then sign extended the result. If in a char
constant and compiled with /J, the compiler cast the value to an
unsigned char.
For example, '\x1ff' is out of range for a character. Note that
the following code causes this warning:
printf("\x7Bell\n");
The number 7be is a legal hex number, but is too large for a
character. To correct this example, use three hex digits:
printf("\x007Bell\n");
-♦-