mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
[ntvdm]: use an "unsigned" abs for the comparison (that's what I want). fix msvc warning.
svn path=/trunk/; revision=67837
This commit is contained in:
parent
0621d3bc17
commit
fd3f43887a
1 changed files with 2 additions and 4 deletions
|
@ -160,10 +160,8 @@ VOID PulseSample(VOID)
|
|||
/*
|
||||
* Magic begins there...
|
||||
*/
|
||||
#ifndef ABS
|
||||
#define ABS(x) ((x) < 0 ? -(x) : (x))
|
||||
#endif
|
||||
if (ABS(CurrPulsesFreq - LastPulsesFreq) > 7)
|
||||
#define UABS(x) (ULONG)((LONG)(x) < 0 ? -(LONG)(x) : (x))
|
||||
if (UABS(CurrPulsesFreq - LastPulsesFreq) > 7)
|
||||
{
|
||||
/*
|
||||
* This can be a "large" fluctuation so ignore it for now, but take
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue