mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-11-03 19:10:55 +00:00 
			
		
		
		
	fix a compilation error
msgpack/_unpacker.pyx: In function 'PyObject* __pyx_pf_7msgpack_9_unpacker_unpac kb(PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*, PyObject*, PyObje ct*)': msgpack/_unpacker.pyx:111:70: error: invalid cast from type 'Py_buffer' to type 'char*'
This commit is contained in:
		
							parent
							
								
									b0c193f3e0
								
							
						
					
					
						commit
						63b9fa5843
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -108,7 +108,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None,
 | 
			
		|||
        if ret == 1:
 | 
			
		||||
            obj = unpack_data(&ctx)
 | 
			
		||||
            if off < buff.len:
 | 
			
		||||
                raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>(buff)+off, buff.len-off))
 | 
			
		||||
                raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>buff.buf+off, buff.len-off))
 | 
			
		||||
            return obj
 | 
			
		||||
        else:
 | 
			
		||||
            raise UnpackValueError("Unpack failed: error = %d" % (ret,))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue