'operator' : 右移過大,數據遺失
備註
右移作業太大。 所有顯著位都會移出,結果一律為零。
範例
下列範例會產生 C4333。
// C4333.cpp
// compile with: /c /W1
unsigned shift8 (unsigned char c) {
return c >> 8; // C4333
// try the following line instead
// return c >> 4; // OK
}
'operator' : 右移過大,數據遺失
右移作業太大。 所有顯著位都會移出,結果一律為零。
下列範例會產生 C4333。
// C4333.cpp
// compile with: /c /W1
unsigned shift8 (unsigned char c) {
return c >> 8; // C4333
// try the following line instead
// return c >> 4; // OK
}