fixed differences in signedness warnings

svn path=/trunk/; revision=17970
This commit is contained in:
Thomas Bluemel 2005-09-21 17:37:08 +00:00
parent 6f8faaa0d5
commit 2e7c6d22ad

View file

@ -27,14 +27,14 @@ extern FAST_MUTEX UserLock;
ASSERT(FALSE); \
} \
UUserEnterExclusive(); \
ASSERT(InterlockedIncrement(&_locked) == 1 /*> 0*/); \
ASSERT(InterlockedIncrement((PLONG)(&_locked)) == 1 /*> 0*/); \
_file = __FILE__; _line = __LINE__; \
/* DPRINT("got lock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
}
#define UserLeave() \
{ \
ASSERT(InterlockedDecrement(&_locked) == 0/*>= 0*/); \
ASSERT(InterlockedDecrement((PLONG)(&_locked)) == 0/*>= 0*/); \
/*DPRINT("unlock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
if (UserLock.Owner != KeGetCurrentThread()) { \
DPRINT1("file %s, line %i\n",_file, _line); \