[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master aef4bd7 3/7: Write whitespace before and afte
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master aef4bd7 3/7: Write whitespace before and after binary operators |
Date: |
Mon, 12 Feb 2018 07:15:10 -0500 (EST) |
branch: master
commit aef4bd7f3c0c8b0369f771002a388c199114956d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Write whitespace before and after binary operators
---
miscellany.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/miscellany.cpp b/miscellany.cpp
index d8c8cd1..69bdc29 100644
--- a/miscellany.cpp
+++ b/miscellany.cpp
@@ -218,8 +218,8 @@ int get_needed_pages_count
// these rows, in the last by one page.
if(1 < num_pages)
{
- auto const rows_on_last_page = total_rows - (num_pages -
1)*used_per_page;
- auto const free_rows = rows_per_page - groups_per_page*(rows_per_group
+ 1);
+ auto const rows_on_last_page = total_rows - (num_pages - 1) *
used_per_page;
+ auto const free_rows = rows_per_page - groups_per_page *
(rows_per_group + 1);
if(rows_on_last_page <= free_rows)
{
num_pages--;
- [lmi-commits] [lmi] master updated (a3a0a42 -> b7c7ce5), Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master 4f4b26f 2/7: Write inequality comparisons in number-line order, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master 66ef509 4/7: Rename a function for terseness, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master e49df2c 5/7: Alphabetize unit-test functions, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master 26cb882 6/7: Reorder a function's arguments, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master 5deba0f 1/7: Optionally write uncompressed PDF files, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master b7c7ce5 7/7: Augment unit tests, Greg Chicares, 2018/02/12
- [lmi-commits] [lmi] master aef4bd7 3/7: Write whitespace before and after binary operators,
Greg Chicares <=