diff options
author | Chris Robinson <[email protected]> | 2012-09-11 03:29:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-11 03:29:00 -0700 |
commit | 1c44a9676800972a185d0e9b931ff3320267f1ef (patch) | |
tree | d1dac2259bbeb2e30d414e36f5f710db3242a620 /utils | |
parent | 34fef456c80dc4c0cafe28c057fe45f6ff571d59 (diff) |
Silence a couple MSVC warnings
Diffstat (limited to 'utils')
-rw-r--r-- | utils/makehrtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c index 08861fb8..e2e58d7c 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -1774,7 +1774,7 @@ static int StoreMhr (const HrirDataT * hData, const char * filename) { } for (j = 0; j < hData -> mIrCount; j ++) { // v = (int) fmin (round (44100.0 * hData -> mHrtds [j]), MAX_HRTD); -v = fmin (hData -> mHrtds [j], MAX_HRTD); + v = (int) fmin (hData -> mHrtds [j], MAX_HRTD); if (! WriteBin4 (BO_LITTLE, 1, (uint4) v, fp, filename)) return (0); } @@ -2062,7 +2062,7 @@ static int ReadSourceRef (TokenReaderT * tr, SourceRefT * src) { TrIndication (tr, & line, & col); if (! TrReadInt (tr, 0x80000000, 0x7FFFFFFF, & intVal)) return (0); - if ((abs (intVal) < MIN_BIN_BITS) || (abs (intVal) > (8 * src -> mSize))) { + if ((abs (intVal) < MIN_BIN_BITS) || ((uint)abs(intVal) > (8 * src -> mSize))) { TrErrorAt (tr, line, col, "Expected a value of (+/-) %d to %d.\n", MIN_BIN_BITS, 8 * src -> mSize); return (0); } |