mercurial/cext/pathencode.c
changeset 38702 992e108212a9
parent 38113 f7a0398996ad
child 41336 763b45bc4483
equal deleted inserted replaced
38701:f016eac2a466 38702:992e108212a9
   472                               Py_ssize_t len)
   472                               Py_ssize_t len)
   473 {
   473 {
   474 	static const uint32_t twobytes[8] = {0, 0, 0x87fffffe};
   474 	static const uint32_t twobytes[8] = {0, 0, 0x87fffffe};
   475 
   475 
   476 	static const uint32_t onebyte[8] = {
   476 	static const uint32_t onebyte[8] = {
   477 	    1, 0x2bff3bfa, 0x68000001, 0x2fffffff,
   477 	    1,
       
   478 	    0x2bff3bfa,
       
   479 	    0x68000001,
       
   480 	    0x2fffffff,
   478 	};
   481 	};
   479 
   482 
   480 	Py_ssize_t destlen = 0;
   483 	Py_ssize_t destlen = 0;
   481 
   484 
   482 	return _encode(twobytes, onebyte, dest, destlen, destsize, src, len, 1);
   485 	return _encode(twobytes, onebyte, dest, destlen, destsize, src, len, 1);