]> git.lyx.org Git - features.git/commit
Work around MSVC warning
authorGeorg Baum <baum@lyx.org>
Thu, 26 Jun 2014 19:05:40 +0000 (21:05 +0200)
committerJean-Marc <lasgouttes@lyx.org>
Fri, 9 Jan 2015 10:54:05 +0000 (11:54 +0100)
commit9ebc325be3fd6143ab0f7a6a2a1f10bc32fb7b0c
treebf69673cff64ea8833f251952347d62fadd7fdbf
parentdf0b34017e3b0c2a4b50f06c4468d3090af8e4ee
Work around MSVC warning

The statement
if (pos < from + lyxrc.completion_minlength)
triggers a signed vs. unsigned warning. I don't know why this happens, it
could be a MSVC bug, or related to LLP64 (windows) vs. LP64 (unix)
programming model, or the C++ standard might be ambigous in the section
defining the "usual arithmetic conversions". However, using a temporary
variable is safe and works on all compilers.
src/Paragraph.cpp
status.21x