| OK I fixed this. The parser was assuming only the type of the left operand. It needed to check both, otherwise the wrong opcode was called (pow.i instead of pow.k).
In GIT now.
Victor
On 20 Nov 2011, at 12:54, Victor Lazzarini wrote:
> Following Menno's e-mail, here is a diagnostics instrument showing the issue:
>
> instr 1
> top:
> kbit init 0
> k1 = 2^kbit
> printks "2 to the power of %d is: %d \n", 0, int(kbit), int(k1)
> kbit = kbit + 1
> if kbit > 10 then
> turnoff
> endif
>
> kbit seems to always be 0 when used as the exponent to the expression.
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |