Various fixes and improvements, backported from Pro version. Code by Erik Zandvliet.
This commit is contained in:
parent
5cce37c521
commit
b28a619fc6
13 changed files with 383 additions and 550 deletions
|
@ -26,7 +26,7 @@ namespace Bit{
|
|||
}
|
||||
|
||||
/// Retrieves a long in network order from the pointer p.
|
||||
inline unsigned long btohl(char * p) {
|
||||
inline unsigned long btohl(const char * p) {
|
||||
return ((unsigned long)p[0] << 24) | ((unsigned long)p[1] << 16) | ((unsigned long)p[2] << 8) | p[3];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue