共用方式為


編譯器警告 (層級 1) C4333

'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
}