Commits

Dean Hall  committed 34a2530

Fixes issue 205 - Applied to v10 branch

  • Participants
  • Parent commits f66d317
  • Branches v10

Comments (0)

Files changed (2)

File src/lib/__bi.py

         PM_RAISE(retval, PM_RET_EX_TYPE);
         return retval;
     }
+    ps = NATIVE_GET_LOCAL(0);
 
 #ifdef HAVE_BYTEARRAY
     /* Bytearray is a special case to save RAM converting each byte to an Int */
 #endif /* HAVE_BYTEARRAY */
 
     /* Raise TypeError if arg is not a sequence */
-    ps = NATIVE_GET_LOCAL(0);
     if ((OBJ_GET_TYPE(ps) != OBJ_TYPE_TUP)
         && (OBJ_GET_TYPE(ps) != OBJ_TYPE_LST)
         && (OBJ_GET_TYPE(ps) != OBJ_TYPE_DIC))

File src/vm/int.h

  * @param r_pn Return by reference; New integer with value of x / y or x % y.
  * @return Return status
  */
-PmReturn_t int_pow(pPmObj_t px, pPmObj_t py, pPmObj_t *r_pn);PmReturn_t int_divmod(pPmObj_t px, pPmObj_t py, uint8_t op, pPmObj_t *r_pxopy);
+PmReturn_t int_divmod(pPmObj_t px, pPmObj_t py, uint8_t op, pPmObj_t *r_pxopy);
 
 #endif /* __INT_H__ */