diff options
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | tests/hash-target.cpp | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 2026cba5f..ba4df1cc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,3 +26,11 @@ addons: script: make -j2 && HAVE_DOT=YES doxygen Doxyfile notifications: email: false + irc: + on_success: change + on_failure: change + channels: + - "chat.freenode.net#monero-dev" + nick: monero + template: + - "%{result} | %{repository}#%{build_number} (%{commit} : %{author}) | Build details : %{build_url}" diff --git a/tests/hash-target.cpp b/tests/hash-target.cpp index c46f6722b..aeb6688bc 100644 --- a/tests/hash-target.cpp +++ b/tests/hash-target.cpp @@ -41,7 +41,7 @@ using cryptonote::check_hash; int main(int argc, char *argv[]) { crypto::hash h; for (uint64_t diff = 1;; diff += 1 + (diff >> 8)) { - for (int b = 0; b < 256; b++) { + for (uint16_t b = 0; b < 256; b++) { memset(&h, b, sizeof(crypto::hash)); if (check_hash(h, diff) != (b == 0 || diff <= 255 / b)) { return 1; |