diff options
Diffstat (limited to 'tools/inc/tools/errcode.hxx')
-rw-r--r-- | tools/inc/tools/errcode.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/inc/tools/errcode.hxx b/tools/inc/tools/errcode.hxx index cf767b842b7a..404ce7bd6e34 100644 --- a/tools/inc/tools/errcode.hxx +++ b/tools/inc/tools/errcode.hxx @@ -95,14 +95,14 @@ Warning || || | #else -typedef ULONG ErrCode; +typedef sal_uIntPtr ErrCode; -inline ULONG ERRCODE_TOERRID( ULONG x ) +inline sal_uIntPtr ERRCODE_TOERRID( sal_uIntPtr x ) { return x & ~ERRCODE_DYNAMIC_MASK; } -inline ULONG ERRCODE_TOERROR( ULONG x ) +inline sal_uIntPtr ERRCODE_TOERROR( sal_uIntPtr x ) { return ((x & ERRCODE_WARNING_MASK) ? 0 : (x & ERRCODE_ERROR_MASK)); } |