aboutsummaryrefslogtreecommitdiff
path: root/simplestarboard/info.json
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-03-20 03:07:54 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-03-20 03:07:54 +0000
commit16aeaa50db79e3c17194128a93d22370bf5daa33 (patch)
treecbcef052ca3afb49274513446514438fa1ed1604 /simplestarboard/info.json
parent92a0d3eb4fd919ff9ed33b81d379ccb77af43026 (diff)
downloadaps-cogs-16aeaa50db79e3c17194128a93d22370bf5daa33.tar
aps-cogs-16aeaa50db79e3c17194128a93d22370bf5daa33.tar.gz
aps-cogs-16aeaa50db79e3c17194128a93d22370bf5daa33.zip
markov: avoid float division in uint_to_bytes
It seems as though the float division could cause an issue where the actual value should be an integer but the float representation is slightly higher than that, causing the addition of an extra unnecessary byte. Although this works fine as long as the same function is used, it could cause problems if seemingly inconsequential details change. I switch to using divmod and checking for the presence of a remainder. This should ensure use of the exact minimum required number of bytes in the blob.
Diffstat (limited to 'simplestarboard/info.json')
-rw-r--r--simplestarboard/info.json5
1 files changed, 0 insertions, 5 deletions
diff --git a/simplestarboard/info.json b/simplestarboard/info.json
deleted file mode 100644
index af11ade..0000000
--- a/simplestarboard/info.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "author": ["Arjun Satarkar"],
- "description": "Create starboards in your server.",
- "short": "Create starboards in your server."
-}