3akev / godot-arabic-text

MIT License
22 stars 7 forks source link

Problem with Godot-3.2 - #1

Closed atari83 closed 4 years ago

atari83 commented 4 years ago

Hello, and thanks alot for this great addons :) Well, I was using arabic-text addon on Godot-3.1 without any issue but when i upgraded on 3.2 i noticed that Godot complaining about:

"Invalid operands 'int' and 'int' in operator '<<'." on line 39 arabic-text/bidi/unicodedata.gd

which is: index = index2[index<<SHIFT + code&(1<<SHIFT - 1)]

I didnt know what is the best workaround to fix this, so i reported to you. :)

3akev commented 4 years ago

Thanks for reporting! I can reproduce the problem, and even though I'm not entirely certain what went wrong, it seems that simplifying that line of code fixed the problem. Check out the latest commit.