muse-sequencer / muse

MusE is a digital audio workstation with support for both Audio and MIDI
https://muse-sequencer.github.io/
Other
644 stars 69 forks source link

Debug substitutions #1230

Closed donarturo11 closed 1 year ago

donarturo11 commented 1 year ago

In Windows some printf functions are compiled with warning, which in debug type is treated as error (default setting). Warning are caused by small differences in types like long int. To force reading as long int (%ld) I put casts for values.

donarturo11 commented 1 year ago

I reverted utils.cpp. Compiling error is only in debug mode, because return-type warning (in debug all warnings are treated as errors, maybe better if warnings like unused variables or return type wouldn't be treated as errors).