Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGürel Kaynak <gurelkaynak@gmail.com>2016-03-31 13:43:52 +0300
committerkenorb <kenorb@users.noreply.github.com>2019-02-03 00:40:00 +0300
commitb3c9ce2256389945f2ac8bc01e1add3fe44ec99f (patch)
tree3e4c65f025fe8781052e71830787a825f64b07da
parentce8216af20ffa81799c7f565d673ba03e77a68a8 (diff)
Fixes #100. Removed other assert.
-rw-r--r--mtproto-utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mtproto-utils.c b/mtproto-utils.c
index ce9cbb1..1fea566 100644
--- a/mtproto-utils.c
+++ b/mtproto-utils.c
@@ -99,7 +99,6 @@ static unsigned long long BN2ull (TGLC_bn *b) {
return TGLC_bn_get_word (b);
} else if (sizeof (unsigned long long) == 8) {
unsigned long long tmp;
- /* Here be dragons, but it should be okay due to be64toh */
TGLC_bn_bn2bin (b, (unsigned char *) &tmp);
return be64toh (tmp);
} else {
@@ -112,7 +111,6 @@ static void ull2BN (TGLC_bn *b, unsigned long long val) {
TGLC_bn_set_word (b, val);
} else if (sizeof (unsigned long long) == 8) {
val = htobe64(val);
- /* Here be dragons, but it should be okay due to htobe64 */
TGLC_bn_bin2bn ((unsigned char *) &val, 8, b);
} else {
assert (0);