[Xapian-tickets] [Xapian] #377: MSVC 9.0 warning in xapian-core/common/str.h

Xapian nobody at xapian.org
Mon May 25 14:55:01 BST 2009


#377: MSVC 9.0 warning in xapian-core/common/str.h
-------------------------------+--------------------------------------------
 Reporter:  kelm               |        Owner:  olly     
     Type:  defect             |       Status:  reopened 
 Priority:  normal             |    Milestone:  1.1.1    
Component:  Other              |      Version:  SVN trunk
 Severity:  normal             |   Resolution:           
 Keywords:                     |    Blockedby:           
 Platform:  Microsoft Windows  |     Blocking:           
-------------------------------+--------------------------------------------

Comment(by kelm):

 Version is svn trunk 12765.

 These are the output messages from the compiler (MSVC 9.0):

 {{{
 .\str.cc(59) : warning C4244: 'argument' : conversion from 'long' to
 'char', possible loss of data
         .\str.cc(98) : see reference to function template instantiation
 'std::string tostring<long>(T)' being compiled
         with
         [
             T=long
         ]
 .\str.cc(41) : warning C4244: 'argument' : conversion from 'unsigned long'
 to 'char', possible loss of data
         .\str.cc(104) : see reference to function template instantiation
 'std::string tostring_unsigned<unsigned long>(T)' being compiled
         with
         [
             T=unsigned long
         ]
 .\str.cc(59) : warning C4244: 'argument' : conversion from '__int64' to
 'char', possible loss of data
         .\str.cc(110) : see reference to function template instantiation
 'std::string tostring<__int64>(T)' being compiled
         with
         [
             T=__int64
         ]
 .\str.cc(41) : warning C4244: 'argument' : conversion from 'unsigned
 __int64' to 'char', possible loss of data
         .\str.cc(116) : see reference to function template instantiation
 'std::string tostring_unsigned<unsigned __int64>(T)' being compiled
         with
         [
             T=unsigned __int64
         ]

 }}}

 What "constructor cast" in line 42 are you referring to?

-- 
Ticket URL: <http://trac.xapian.org/ticket/377#comment:4>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list