From 1b8b3455045b7d697e53aa6afd672d892efeb1b9 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Thu, 1 Sep 2011 01:42:16 +0000 Subject: [PATCH] Idiot, DEBUG not debug --- etc/makemake.py | 2 +- extra/mmelody.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/makemake.py b/etc/makemake.py index dc82b2a..38be860 100755 --- a/etc/makemake.py +++ b/etc/makemake.py @@ -260,7 +260,7 @@ def maincfilename_find (dirname): def functions_find (filepath, functiondeps, functions, options): - command = options.compile + ' -c ' + filepath + ' -fdump-tree-cfg-raw -Ddebug > /dev/null' + command = options.compile + ' -c ' + filepath + ' -fdump-tree-cfg-raw -DDEBUG > /dev/null' if options.debug: print >> sys.stderr, command os.system (command) diff --git a/extra/mmelody.c b/extra/mmelody.c index ad9360d..7c1e463 100644 --- a/extra/mmelody.c +++ b/extra/mmelody.c @@ -115,8 +115,8 @@ mmelody_ticker_set (mmelody_t mmelody) With symbol_fraction = 4, speed = 50, and poll_rate of 200 this gives a result of 60. */ - mmelody->unit_ticks = (mmelody->poll_rate * 60 - * MMELODY_BEAT_FRACTION) + mmelody->unit_ticks + = (mmelody->poll_rate * 60 * MMELODY_BEAT_FRACTION) / (mmelody->speed * mmelody->symbol_fraction * MMELODY_DURATION_FRACTION); }