From b043032a89f38e2b3191a65dab9ae4e8202d48f3 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 12 Nov 2017 07:32:11 +0300 Subject: libADLMIDI now is buildable under OpenWatcom except of some workarounds - Need a different way to create a static library, otherwise it don't wanna be built. - Needed a different custom STL containers (std::vector and std::set) implementation that will work and will don't glitch with a crashes --- src/adlmidi_load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/adlmidi_load.cpp') diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index afe0610..4df4b32 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -58,7 +58,7 @@ bool MIDIplay::LoadBank(const std::string &filename) bool MIDIplay::LoadBank(void *data, unsigned long size) { fileReader file; - file.openData(data, size); + file.openData(data, (size_t)size); return LoadBank(file); } @@ -339,7 +339,7 @@ bool MIDIplay::LoadMIDI(const std::string &filename) bool MIDIplay::LoadMIDI(void *data, unsigned long size) { fileReader file; - file.openData(data, size); + file.openData(data, (size_t)size); return LoadMIDI(file); } -- cgit v1.2.3