File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,11 @@ typedef struct {
228
228
*/
229
229
230
230
static ALWAYS_INLINE JsVarRef jsvGetFirstChild (const JsVar * v ) { return v -> varData .ref .firstChild ; }
231
- static ALWAYS_INLINE JsVarRefSigned jsvGetFirstChildSigned (const JsVar * v ) { return (JsVarRefSigned )v -> varData .ref .firstChild ; }
231
+ static ALWAYS_INLINE JsVarRefSigned jsvGetFirstChildSigned (const JsVar * v ) {
232
+ if (v -> varData .ref .firstChild > JSVARREF_MAX )
233
+ return ((JsVarRefSigned )v -> varData .ref .firstChild ) + JSVARREF_MIN * 2 ;
234
+ return (JsVarRefSigned )v -> varData .ref .firstChild ;
235
+ }
232
236
static ALWAYS_INLINE JsVarRef jsvGetLastChild (const JsVar * v ) { return v -> varData .ref .lastChild ; }
233
237
static ALWAYS_INLINE JsVarRef jsvGetNextSibling (const JsVar * v ) { return v -> varData .ref .nextSibling ; }
234
238
static ALWAYS_INLINE JsVarRef jsvGetPrevSibling (const JsVar * v ) { return v -> varData .ref .prevSibling ; }
You can’t perform that action at this time.
0 commit comments