Fixed overflow issue. Code originally meant to truncate the 64 bit integer did not...
authorSampo Savolainen <v2@iki.fi>
Mon, 22 Sep 2008 20:42:15 +0000 (20:42 +0000)
committerSampo Savolainen <v2@iki.fi>
Mon, 22 Sep 2008 20:42:15 +0000 (20:42 +0000)
commit5315c64acf24517289cf62feeefb7dd3e527a92c
treebccd17be990b40fcff01e04d5b404646647b5de5
parent8623302340b091fd65a5ad2ff5dc25915ea297ca
Fixed overflow issue. Code originally meant to truncate the 64 bit integer did not work as assembler doesn't "cast" variables like C does. get_cycles() was passing the memory address of a 32 bit unsigned int to the x86 call which required 64 bits of storage space. The extra 32 bits corrupted whatever was on the stack next to the variable.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3791 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/ardour/cycles.h