From 08326d19ddf3bcd5104afbc36cb20d5362c45136 Mon Sep 17 00:00:00 2001
From: hendricks266 <hendricks266@1a8010ca-5511-0410-912e-c29ae57300e0>
Date: Wed, 14 Jun 2017 06:59:58 +0000
Subject: [PATCH] Amend r6174 to un-break libxmp-lite.

git-svn-id: https://svn.eduke32.com/eduke32@6179 1a8010ca-5511-0410-912e-c29ae57300e0
---
 source/libxmp-lite/src/mixer.c  | 2 +-
 source/libxmp-lite/src/player.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/source/libxmp-lite/src/mixer.c b/source/libxmp-lite/src/mixer.c
index a919e9d6b..68f0e5d7e 100644
--- a/source/libxmp-lite/src/mixer.c
+++ b/source/libxmp-lite/src/mixer.c
@@ -523,7 +523,7 @@ void libxmp_mixer_softmixer(struct context_data *ctx)
 
 					if (mix_fn != NULL) {
 						mix_fn(vi, buf_pos, samples,
-							vol_l >> 8, vol_r >> 8, (int) step * (1 << SMIX_SHIFT), rsize, delta_l, delta_r);
+							vol_l >> 8, vol_r >> 8, (int) (step * (1 << SMIX_SHIFT)), rsize, delta_l, delta_r);
 					}
 
 					buf_pos += mix_size;
diff --git a/source/libxmp-lite/src/player.c b/source/libxmp-lite/src/player.c
index a3dbfa456..a75b6d368 100644
--- a/source/libxmp-lite/src/player.c
+++ b/source/libxmp-lite/src/player.c
@@ -925,12 +925,12 @@ static void process_frequency(struct context_data *ctx, int chn, int act)
 
 	/* For xmp_get_frame_info() */
 	xc->info_pitchbend = linear_bend >> 7;
-	xc->info_period = (int) period * 4096;
+	xc->info_period = (int) (period * 4096);
 
 	if (IS_PERIOD_MODRNG()) {
 		CLAMP(xc->info_period,
-            (int) libxmp_note_to_period(ctx, MAX_NOTE_MOD, xc->finetune, 0) * 4096,
-            (int) libxmp_note_to_period(ctx, MIN_NOTE_MOD, xc->finetune, 0) * 4096);
+            (int) (libxmp_note_to_period(ctx, MAX_NOTE_MOD, xc->finetune, 0) * 4096),
+            (int) (libxmp_note_to_period(ctx, MIN_NOTE_MOD, xc->finetune, 0) * 4096));
 	} else if (xc->info_period < (1 << 12)) {
 		xc->info_period = (1 << 12);
 	}
@@ -1847,7 +1847,7 @@ void xmp_get_frame_info(xmp_context opaque, struct xmp_frame_info *info)
 	info->speed = p->speed;
 	info->bpm = p->bpm;
 	info->total_time = p->scan[p->sequence].time;
-	info->frame_time = (int) p->frame_time * 1000;
+	info->frame_time = (int) (p->frame_time * 1000);
 	info->time = (int) p->current_time;
 	info->buffer = s->buffer;