Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit os's
Also use Py_ssize_t which we might need to define for older python's
This commit is contained in:
		@@ -676,7 +676,7 @@ static PyObject *Lattice_getLatSize(BPy_Lattice * self)
 | 
			
		||||
static PyObject *Lattice_getAxisType(BPy_Lattice * self, void * type)
 | 
			
		||||
{
 | 
			
		||||
	char interp_type = 0;
 | 
			
		||||
	switch ( (int)type ) {
 | 
			
		||||
	switch ( GET_INT_FROM_POINTER(type) ) {
 | 
			
		||||
	case 0:
 | 
			
		||||
		interp_type = self->lattice->typeu;
 | 
			
		||||
		break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user