1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

LibHTML: Make it possible to build LibHTML on the host.

- "make" builds the normal Serenity libhtml.a
- "make -f Makefile.host" builds a test program for the host machine.
This commit is contained in:
Andreas Kling 2019-06-22 21:21:57 +02:00
parent 04b2082e97
commit 7e1cb86da7
12 changed files with 101 additions and 56 deletions

View file

@ -31,7 +31,7 @@ template<typename T>
struct Traits<T*> {
static unsigned hash(const T* p)
{
return int_hash((dword)p);
return int_hash((unsigned)(__PTRDIFF_TYPE__)p);
}
static void dump(const T* p) { kprintf("%p", p); }
};