]> git.lyx.org Git - features.git/commitdiff
MSVC compile fix
authorAbdelrazak Younes <younes@lyx.org>
Fri, 27 Oct 2006 09:41:32 +0000 (09:41 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 27 Oct 2006 09:41:32 +0000 (09:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15575 a592a061-630c-0410-9148-cb99ea01b6c8

src/changes.C

index 0ba57aadf07481dbcaa167e2c6e0126662a8c207..6458e65733d04cf3df5a1e88c5d2d2f9ca280b3e 100644 (file)
@@ -21,6 +21,7 @@
 
 namespace lyx {
 
+using std::abs;
 using std::endl;
 using std::string;
 using std::max;
@@ -49,7 +50,7 @@ bool operator==(Change const & l, Change const & r)
 
        return l.author == r.author
               // both changes made within 5 minutes?
-              && abs(l.changetime - r.changetime) < 300;
+              && abs(static_cast<int>(l.changetime - r.changetime)) < 300;
 }