History

Remove redundant parens

cancel committed 6 years ago

Commit 35741281 parent f8f84681 file · +2 −3Browse files

Unified · Split

sim.c+2−3
@@ -714,9 +714,8 @@ BEGIN_OPERATOR(lerp) · 713 unmodified lines
714 rate = (Isz)index_of(g);714 rate = (Isz)index_of(g);
715 Isz target = (Isz)index_of(PEEK(0, 1));715 Isz target = (Isz)index_of(PEEK(0, 1));
716 Isz val = (Isz)index_of(PEEK(1, 0));716 Isz val = (Isz)index_of(PEEK(1, 0));
717 Isz mod = (val <= target - rate)717 Isz mod =
718 ? rate718 val <= target - rate ? rate : val >= target + rate ? -rate : target - val;
719 : ((val >= target + rate) ? -rate : target - val);
720 POKE(1, 0, glyph_of((Usz)(val + mod)));719 POKE(1, 0, glyph_of((Usz)(val + mod)));
721END_OPERATOR720END_OPERATOR
722 721

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t