Replace post-increment with pre-increment

And post-decrement with pre-decrement.
This commit is contained in:
Chocobo1 2018-05-31 01:06:28 +08:00
parent 40330c4606
commit 5ddbf9bba9
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
16 changed files with 58 additions and 58 deletions

View file

@ -58,7 +58,7 @@ loadSelectedCategory();
function genHash(string) {
var hash = 0;
for (var i = 0; i < string.length; i++) {
for (var i = 0; i < string.length; ++i) {
var c = string.charCodeAt(i);
hash = (c + hash * 31) | 0;
}