在Debug模式下的VC6 Watch的bug
1、如果symbol为12的话,出现了-52的值
struct __SpecSymbolMarginEEE
{
char symbol[12];
double spec_margin;
bool operator<(const __SpecSymbolMarginEEE& other) const
{return (0 > strcmp(symbol, other.symbol));}
bool operator==(const __SpecSymbolMarginEEE& other) const
{return (0 == strcmp(symbol, other.symbol));}
};
__SpecSymbolMarginEEE ssm = {0};
2、如果symbol为32的话,正常
struct __SpecSymbolMarginEEE
{
char symbol[32];
double spec_margin;
bool operator<(const __SpecSymbolMarginEEE& other) const
{return (0 > strcmp(symbol, other.symbol));}
bool operator==(const __SpecSymbolMarginEEE& other) const
{return (0 == strcmp(symbol, other.symbol));}
};
__SpecSymbolMarginEEE ssm = {0};
