BUG: SIZE and SIZEOF May Give Incorrect Values for Locals (111877)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q111877 SYMPTOMS
SIZEOF and SIZE drop the high byte of the size for LOCAL variables larger
than 255 bytes. The SIZE and SIZEOF for global variables and data types is
correct. The TYPE operator works correctly for all variables.
RESOLUTION
You can use the TYPE and LENGTHOF operators to obtain the correct size of
local variables.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.x. We are
researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
Modification Type: | Minor | Last Reviewed: | 10/14/2003 |
---|
Keywords: | KB111877 |
---|
|