Skip to content

Commit

Permalink
Screw you doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrapivin committed May 28, 2020
1 parent 91ea4bd commit 1d25a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified NekoPresence.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions NekoPresence/nekopresence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ extern "C" {

np_small_image_text = small_image_text;
np_large_image_text = large_image_text;
np_instance = static_cast<int8_t>(std::floor(instance));
np_instance = (instance > 0.5) ? 1 : 0;

return GM_TRUE;
}
Expand All @@ -209,7 +209,7 @@ extern "C" {

// Yes, compiler, I know that there is a loss of data, no need to warn me about it.

if (is_unix_ts) {
if (is_unix_ts > 0.5) {
np_start_timestamp = startTimestamp;
np_end_timestamp = endTimestamp;
}
Expand Down

0 comments on commit 1d25a1d

Please sign in to comment.