NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 1) C4287

'operator' : unsigned/negative constant mismatch

An unsigned variable was used in an operation with a negative number.

C4287 is off by default. The following sample generates C4287:

#pragma warning(1 : 4287)
#include <stdio.h>
int main() {
   unsigned int u = 1;
   if (u < -1)   // C4287
      printf("u LT -1");
   else
      printf("u !LT -1");
   return 0;
}