]> git.lizzy.rs Git - rust.git/commit
Fix a warning in libcore on 16bit targets.
authorVadzim Dambrouski <pftbest@gmail.com>
Tue, 1 May 2018 14:48:31 +0000 (17:48 +0300)
committerVadzim Dambrouski <pftbest@gmail.com>
Tue, 1 May 2018 14:48:31 +0000 (17:48 +0300)
commitf29e62aadf9efa961b3da9d960fb35f748aed0d5
treef366e318d7c4f32ba338c1a74245cd5210966541
parent491512ba1ed37a20b514c216c3eddaa732689de9
Fix a warning in libcore on 16bit targets.

This code is assuming that usize >= 32bits, but it is not the case on
16bit targets. It is producing a warning that will fail the compilation
on MSP430 if deny(warnings) is enabled.
It is very unlikely that someone would actually use this code on
a microcontroller, but since unicode was merged into libcore we
have compile it on 16bit targets.
src/libcore/unicode/bool_trie.rs