mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Change debug assertions to specific ones
This commit is contained in:
parent
2cf0077be1
commit
661d234c3c
23 changed files with 53 additions and 53 deletions
|
@ -387,7 +387,7 @@ macro_rules! define_string_types {
|
|||
// data.
|
||||
let this: &$StringRepr = mem::transmute(self);
|
||||
if this.data.is_null() {
|
||||
debug_assert!(this.length == 0);
|
||||
debug_assert_eq!(this.length, 0);
|
||||
// Use an arbitrary non-null value as the pointer
|
||||
slice::from_raw_parts(0x1 as *const $char_t, 0)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue