]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODLANG-12 and proper fix for MODLANG-7
authorMichael Jerris <mike@jerris.com>
Thu, 26 Apr 2007 22:03:58 +0000 (22:03 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 26 Apr 2007 22:03:58 +0000 (22:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5022 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/js/src/jspubtd.h

index 02a9c1e574955d467bdf4fd63c82b89a8517ed05..7b22bfce39a66c85d82b684f85993dba1c0daad8 100644 (file)
@@ -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 *