From 32efbef928f239b1dc35d1ecd6a0baed1893291e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 1 Aug 2015 17:21:47 +0100 Subject: Leave top 8 bits of dom exception unused. --- include/dom/core/exceptions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/dom/core/exceptions.h') 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 */ -- cgit v1.2.3