fjarri / reikna

Pure Python GPGPU library
http://reikna.publicfields.net/
MIT License
164 stars 16 forks source link

Indexing Macro problem #27

Closed Philonoist closed 8 years ago

Philonoist commented 8 years ago

When I access {blabla.load_idx}(x-1,y) I get unexpected results, but when I do it like this: {blabla.load_idx}((x-1),y) its fine. I suspect the macro expansion is missing a pair of parenthesis,

fjarri commented 8 years ago

Thanks for the report! Indeed, some parentheses were missing.