diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-29 14:58:48 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-05 20:19:06 +0100 |
commit | acc646ad8fc3ef11fcc63b69f3d8484e4a91accd (patch) | |
tree | 613753f19fe6f6fa45884750eb176c1517269ec2 /src/nvim/quickfix.c | |
parent | c513cbf361000e6f09cd5b71b718e9de3f88904d (diff) | |
download | rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.tar.gz rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.tar.bz2 rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.zip |
refactor: the long goodbye
long is 32 bits on windows, while it is 64 bits on other architectures.
This makes the type suboptimal for a codebase meant to be
cross-platform. Replace it with more appropriate integer types.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index eae357ebf0..2e3cc4f170 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2084,7 +2084,7 @@ static int copy_loclist(qf_list_T *from_qfl, qf_list_T *to_qfl) // Assign a new ID for the location list to_qfl->qf_id = ++last_qf_id; - to_qfl->qf_changedtick = 0L; + to_qfl->qf_changedtick = 0; // When no valid entries are present in the list, qf_ptr points to // the first item in the list @@ -3450,7 +3450,7 @@ static void qf_free(qf_list_T *qfl) qfl->qf_ctx = NULL; callback_free(&qfl->qf_qftf_cb); qfl->qf_id = 0; - qfl->qf_changedtick = 0L; + qfl->qf_changedtick = 0; } /// Adjust error list entries for changed line numbers |