diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-01 17:21:47 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-01 17:21:47 +0100 |
commit | 32efbef928f239b1dc35d1ecd6a0baed1893291e (patch) | |
tree | d391f65df0112a0343845103fbf2c62ddf676c96 /include/dom | |
parent | ff1caf307c8ea8a8f407c44da48fa6c55cb5e30a (diff) | |
download | libdom-32efbef928f239b1dc35d1ecd6a0baed1893291e.tar.gz libdom-32efbef928f239b1dc35d1ecd6a0baed1893291e.tar.bz2 |
Leave top 8 bits of dom exception unused.
Diffstat (limited to 'include/dom')
-rw-r--r-- | include/dom/core/exceptions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dom/core/exceptions.h b/include/dom/core/exceptions.h index 04c7f18..0370a00 100644 --- a/include/dom/core/exceptions.h +++ b/include/dom/core/exceptions.h @@ -11,13 +11,13 @@ /** * Class of a DOM exception. * - * The top 16 bits of a dom_exception are a bitfield + * The top 8 bits of a dom_exception are unused, the next 8 bits are a bitfield * indicating which class the exception belongs to. */ typedef enum { DOM_EXCEPTION_CLASS_NORMAL = 0, - DOM_EXCEPTION_CLASS_EVENT = (1<<30), - DOM_EXCEPTION_CLASS_INTERNAL = (1<<31) + DOM_EXCEPTION_CLASS_EVENT = (1<<16), + DOM_EXCEPTION_CLASS_INTERNAL = (1<<17) } dom_exception_class; /* The DOM spec says that this is actually an unsigned short */ |