commit f1582a2acbf1e55cd4b4206ce457af8521f012d5
Author: Guillaume Munch <[email protected]>
Date:   Sat Sep 3 23:52:55 2016 +0100

    Fix type of pos
---
 src/OutputParams.cpp |    2 +-
 src/OutputParams.h   |    2 +-
 src/TexRow.cpp       |    6 +++---
 src/TexRow.h         |    8 ++++----
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/OutputParams.cpp b/src/OutputParams.cpp
index 55768ae..20c3a65 100644
--- a/src/OutputParams.cpp
+++ b/src/OutputParams.cpp
@@ -27,7 +27,7 @@ OutputParams::OutputParams(Encoding const * enc)
          inComment(false), inTableCell(NO), inFloat(NONFLOAT),
          inIndexEntry(false), inIPA(false), inDeletedInset(0),
          changeOfDeletedInset(Change::UNCHANGED),
-         par_begin(0), par_end(0), lastid(-1), lastpos(-1), isLastPar(false),
+         par_begin(0), par_end(0), lastid(-1), lastpos(0), isLastPar(false),
          dryrun(false), silent(false), pass_thru(false),
          html_disable_captions(false), html_in_par(false),
          html_make_pars(true), for_toc(false), for_tooltip(false),
diff --git a/src/OutputParams.h b/src/OutputParams.h
index ccb0783..3914617 100644
--- a/src/OutputParams.h
+++ b/src/OutputParams.h
@@ -238,7 +238,7 @@ public:
        mutable int lastid;
 
        /// Last position in the last paragraph before an inset
-       mutable int lastpos;
+       mutable pos_type lastpos;
 
        /// is this the last paragraph in the current buffer/inset?
        bool isLastPar;
diff --git a/src/TexRow.cpp b/src/TexRow.cpp
index f597348..0b3f717 100644
--- a/src/TexRow.cpp
+++ b/src/TexRow.cpp
@@ -107,7 +107,7 @@ TexRow::RowEntryList & TexRow::currentRow()
 
 
 //static
-RowEntry TexRow::textEntry(int id, int pos)
+RowEntry TexRow::textEntry(int id, pos_type pos)
 {
        RowEntry entry;
        entry.is_math = false;
@@ -147,13 +147,13 @@ bool TexRow::start(RowEntry entry)
 }
 
 
-bool TexRow::start(int id, int pos)
+bool TexRow::start(int id, pos_type pos)
 {
        return start(textEntry(id,pos));
 }
 
 
-void TexRow::forceStart(int id, int pos)
+void TexRow::forceStart(int id, pos_type pos)
 {
        if (!enabled_)
                return;
diff --git a/src/TexRow.h b/src/TexRow.h
index 226866f..f74213e 100644
--- a/src/TexRow.h
+++ b/src/TexRow.h
@@ -47,7 +47,7 @@ typedef size_t idx_type;
 
 
 /// an individual par id/pos <=> row mapping
-struct TextEntry { int id; int pos; };
+struct TextEntry { int id; pos_type pos; };
 
 /// an individual math id/cell <=> row mapping
 struct MathEntry { uid_type id; idx_type cell; };
@@ -104,7 +104,7 @@ public:
        /// Converts a CursorSlice into a RowEntry
        static RowEntry rowEntryFromCursorSlice(CursorSlice const & slice);
        /// Encapsulates the paragraph and position for later use
-       static RowEntry textEntry(int id, int pos);
+       static RowEntry textEntry(int id, pos_type pos);
        /// Encapsulates a cell and position for later use
        static RowEntry mathEntry(uid_type id, idx_type cell);
 
@@ -116,7 +116,7 @@ public:
        bool start(RowEntry entry);
        /// Defines the paragraph and position for the current line
        /// returns true if this entry will appear on the current row
-       bool start(int id, int pos);
+       bool start(int id, pos_type pos);
        /// Defines a cell and position for the current line.  Always appear in 
the
        /// current row.
        void startMath(uid_type id, idx_type cell);
@@ -125,7 +125,7 @@ public:
        /// text flow. Note: since the cell idx is not recorded it does not 
work as
        /// well as for math grids; if we were to do that properly we would 
need to
        /// access the id of the parent Tabular inset from the CursorSlice.
-       void forceStart(int id, int pos);
+       void forceStart(int id, pos_type pos);
 
        /// Insert node when line is completed
        void newline();

Reply via email to