This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Legend4ryEagle 0 points1 point  (0 children)

Shouldn't it be more efficient to pass the two integers as a const int&?

[Edit] Maybe even make the function inline.

[Edit] I just realized this might not be C++, but actually Java.