This patch removes a signed/unsinged warning.

Objections?

? Config
? counter-2.diff
? counter-3.diff
? counter.diff
? deptherror.diff
? deptherror.lyx
? dispatch-2.diff
? dispatch-3.diff
? dispatch-4.diff
? distcheck-2.diff
? distcheck.diff
? end.lyx
? kystskipper-a-1.lyx
? lyxserver-1.diff
? lyxserver-2.diff
? lyxserver-3.diff
? mathwarn-1.diff
? morectrs.lyx
? refenum.lyx
? unneeded.diff
? lib/help
Index: src/mathed/math_macroarg.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_macroarg.C,v
retrieving revision 1.50
diff -u -p -b -r1.50 math_macroarg.C
--- src/mathed/math_macroarg.C	13 Apr 2004 06:27:29 -0000	1.50
+++ src/mathed/math_macroarg.C	23 Jul 2004 08:47:23 -0000
@@ -19,9 +19,10 @@
 
 using std::endl;
 using std::auto_ptr;
+using std::size_t;
 
 
-MathMacroArgument::MathMacroArgument(int n)
+MathMacroArgument::MathMacroArgument(size_t n)
 	: number_(n)
 {
 	if (n < 1 || n > 9) {
Index: src/mathed/math_macroarg.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_macroarg.h,v
retrieving revision 1.35
diff -u -p -b -r1.35 math_macroarg.h
--- src/mathed/math_macroarg.h	13 Apr 2004 06:27:29 -0000	1.35
+++ src/mathed/math_macroarg.h	23 Jul 2004 08:47:23 -0000
@@ -20,7 +20,7 @@
 class MathMacroArgument : public MathDimInset {
 public:
 	///
-	explicit MathMacroArgument(int);
+	explicit MathMacroArgument(std::size_t);
 	///
 	std::auto_ptr<InsetBase> clone() const;
 	///
@@ -28,7 +28,7 @@ public:
 	///
 	void draw(PainterInfo &, int x, int y) const;
 	///
-	int number() const { return number_; }
+	std::size_t number() const { return number_; }
 	///
 	InsetBase::Code lyxCode() const { return MATHMACROARG_CODE; }
 
@@ -39,7 +39,7 @@ public:
 
 private:
 	/// A number between 1 and 9
-	int number_;
+	std::size_t number_;
 	///
 	char str_[3];
 };
Index: src/mathed/math_macrotable.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_macrotable.C,v
retrieving revision 1.72
diff -u -p -b -r1.72 math_macrotable.C
--- src/mathed/math_macrotable.C	20 Apr 2004 08:51:15 -0000	1.72
+++ src/mathed/math_macrotable.C	23 Jul 2004 08:47:23 -0000
@@ -29,6 +29,7 @@ using std::map;
 using std::pair;
 using std::string;
 using std::vector;
+using std::size_t;
 
 
 MacroData::MacroData()
@@ -54,7 +55,7 @@ void MacroData::expand(vector<MathArray>
 			continue;
 		//it.cell().erase(it.pos());
 		//it.cell().insert(it.pos(), it.nextInset()->asMathInset()
-		int n = static_cast<MathMacroArgument*>(it.nextInset())->number();
+		size_t n = static_cast<MathMacroArgument*>(it.nextInset())->number();
 		if (n <= args.size()) {
 			it.cell().erase(it.pos());
 			it.cell().insert(it.pos(), args[n - 1]);
@@ -63,7 +64,6 @@ void MacroData::expand(vector<MathArray>
 	//lyxerr << "MathData::expand: res: " << inset.cell(0) << endl;
 	to = inset.cell(0);
 }
-
 
 
 // The global table.
-- 
        Lgb

Reply via email to