##// END OF EJS Templates
revlog: fix type confusion with sidedata_comp_len (issue6580)...
Julien Cristau -
r48670:16346f3d stable
parent child Browse files
Show More
@@ -452,9 +452,10 b' static int node_check(Py_ssize_t nodelen'
452 static PyObject *index_append(indexObject *self, PyObject *obj)
452 static PyObject *index_append(indexObject *self, PyObject *obj)
453 {
453 {
454 uint64_t offset_flags, sidedata_offset;
454 uint64_t offset_flags, sidedata_offset;
455 int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2;
455 int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2,
456 sidedata_comp_len;
456 char data_comp_mode, sidedata_comp_mode;
457 char data_comp_mode, sidedata_comp_mode;
457 Py_ssize_t c_node_id_len, sidedata_comp_len;
458 Py_ssize_t c_node_id_len;
458 const char *c_node_id;
459 const char *c_node_id;
459 char comp_field;
460 char comp_field;
460 char *data;
461 char *data;
@@ -534,9 +535,8 b' static PyObject *index_append(indexObjec'
534 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
535 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
535 {
536 {
536 uint64_t offset_flags, sidedata_offset;
537 uint64_t offset_flags, sidedata_offset;
537 int rev;
538 int rev, sidedata_comp_len;
538 char comp_mode;
539 char comp_mode;
539 Py_ssize_t sidedata_comp_len;
540 char *data;
540 char *data;
541 #if LONG_MAX == 0x7fffffffL
541 #if LONG_MAX == 0x7fffffffL
542 const char *const sidedata_format = PY23("nKiKB", "nKiKB");
542 const char *const sidedata_format = PY23("nKiKB", "nKiKB");
General Comments 0
You need to be logged in to leave comments. Login now