mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Not sure if we still care about C89 in general, but MSVC requires this style
  too.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D8304

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -153,11 +153,12 @@
 {
        if (self->inlined && pos > 0) {
                if (self->offsets == NULL) {
+                       Py_ssize_t ret;
                        self->offsets = PyMem_Malloc(self->raw_length *
                                                     sizeof(*self->offsets));
                        if (self->offsets == NULL)
                                return (const char *)PyErr_NoMemory();
-                       Py_ssize_t ret = inline_scan(self, self->offsets);
+                       ret = inline_scan(self, self->offsets);
                        if (ret == -1) {
                                return NULL;
                        };



To: mharbison72, #hg-reviewers
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to