Consolidate magic number representing max unsigned long

This commit is contained in:
Corey Farwell 2015-10-10 10:24:26 -04:00
parent 9cccd98254
commit 4dc8fd76ec
4 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#reflecting-content-attributes-in-idl-attributes:idl-unsigned-long
// https://html.spec.whatwg.org/multipage#limited-to-only-non-negative-numbers-greater-than-zero
pub const UNSIGNED_LONG_MAX: u32 = 2147483647;