Re: vector to use unsigned long long

Tech-Archive recommends: Fix windows errors by optimizing your registry



Here is the exact message:

warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned
int', possible loss of data



"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:upk1c8NpIHA.2068@xxxxxxxxxxxxxxxxxxxxxxx
"Daniel" <Mahonri@xxxxxxxxxxxx> wrote in message
news:uEuEZwNpIHA.4848@xxxxxxxxxxxxxxxxxxxx
I wrote code to declare a vector to use unsigned long long. However,
I get a warning telling me that the vector is of type unsigned
integer. What can I do to make the vector use unsigned long long?

vector <unsigned long long> v(100000);

Show the code that generates the warning, and the exact text of the
warning.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



.



Relevant Pages

  • Re: nrand48 source code looks weird ?
    ... unsigned short int xsubi, ... 'unsigned __int64' to 'unsigned short', possible loss of data ... Except these three lines produce a warning in visual c 6 ...
    (comp.lang.c)
  • Re: Question
    ... Warning test.c: 3 Assignment of int to unsigned short. ... Possible loss of precision ...
    (comp.lang.c)
  • Re: Question
    ... Warning test.c: 3 Assignment of int to unsigned short. ... Possible loss of precision ...
    (comp.lang.c)
  • Re: compiling Tcl 8.4 for 64bit on Windows XP64
    ... 'size_t' to 'unsigned int', possible loss of data ...
    (comp.lang.tcl)
  • Re: Weird conversion warning
    ... Which possible loss of data the compiler is seeing here? ... The result of adding two shorts is of type int. ... Whether this should cause a warning on ... To make the narrowing conversion explicit, ...
    (microsoft.public.vc.language)