consdiff: Fix 32-bit compilation.

Thanks, jenkins!
This commit is contained in:
Nick Mathewson
2017-03-16 15:14:16 -04:00
parent af5628e770
commit eca9b3424d
+2 -1
View File
@@ -391,7 +391,8 @@ get_id_hash(const cdline_t *line, cdline_t *hash_out)
hash_out->s = hash;
/* Always true because lines are limited to this length */
tor_assert(hash_end - hash <= UINT32_MAX);
tor_assert(hash_end >= hash);
tor_assert((size_t)(hash_end - hash) <= UINT32_MAX);
hash_out->len = (uint32_t)(hash_end - hash);
return 0;