mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bugzilla bug 119384: deleted two assertions that contained illegal type
casts. The two functions that contained the assertions are very simple so they can do without the assertions. Thanks to Nick Blievers <nickb@adacel.com.au> for reporting this bug and suggesting a fix.
This commit is contained in:
parent
c7d82085a1
commit
d67c5d1b84
@ -237,7 +237,6 @@ static void MakeIPv4MappedAddr(const char *v4, char *v6)
|
||||
memset(v6, 0, 10);
|
||||
memset(v6 + 10, 0xff, 2);
|
||||
memcpy(v6 + 12, v4, 4);
|
||||
PR_ASSERT(_PR_IN6_IS_ADDR_V4MAPPED(((PRIPv6Addr *) v6)));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -247,7 +246,6 @@ static void MakeIPv4CompatAddr(const char *v4, char *v6)
|
||||
{
|
||||
memset(v6, 0, 12);
|
||||
memcpy(v6 + 12, v4, 4);
|
||||
PR_ASSERT(_PR_IN6_IS_ADDR_V4COMPAT(((PRIPv6Addr *) v6)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user