From 3cc4a4d093e9e8130985488bcaa73b7ea87bb1a0 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 26 Apr 2007 22:03:58 +0000 Subject: [PATCH] fix MODLANG-12 and proper fix for MODLANG-7 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5022 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/js/src/jspubtd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/js/src/jspubtd.h b/libs/js/src/jspubtd.h index 02a9c1e574..7b22bfce39 100644 --- a/libs/js/src/jspubtd.h +++ b/libs/js/src/jspubtd.h @@ -552,7 +552,7 @@ typedef void * JSEXN_NONE marks an unthrowable error. */ typedef enum JSExnType { - JSEXN_NONE, + JSEXN_NONE = -1, JSEXN_ERR, JSEXN_INTERNALERR, JSEXN_EVALERR, @@ -567,7 +567,7 @@ typedef enum JSExnType { typedef struct JSErrorFormatString { const char *format; /* the error message (may be UTF-8 if compiled with JS_C_STRINGS_ARE_UTF8) */ uint16 argCount; /* the number of arguments to convert in the error message */ - uint16 exnType; /* One of the JSExnType constants above */ + JSExnType exnType; /* One of the JSExnType constants above */ } JSErrorFormatString; typedef const JSErrorFormatString *