We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0c0af7 + eb6f8c5 commit 809279eCopy full SHA for 809279e
src/tlsh_impl.cpp
@@ -784,8 +784,8 @@ void TlshImpl::final(int fc_cons_option)
784
}
785
786
this->lsh_bin.Lvalue = l_capturing(this->data_len);
787
- this->lsh_bin.Q.QR.Q1ratio = (unsigned int) ((float)(q1*100)/(float) q3) % 16;
788
- this->lsh_bin.Q.QR.Q2ratio = (unsigned int) ((float)(q2*100)/(float) q3) % 16;
+ this->lsh_bin.Q.QR.Q1ratio = (unsigned int) ((unsigned long long) q1 * 100 / q3) % 16;
+ this->lsh_bin.Q.QR.Q2ratio = (unsigned int) ((unsigned long long) q2 * 100 / q3) % 16;
789
this->lsh_code_valid = true;
790
791
0 commit comments