Re: vector to use unsigned long long



Here it is along with the declaration:

using namespace std;

vector <unsigned long long>::iterator vIter;

vector <unsigned long long> v(100000);

v[100000-x]=x*1000000000000;

"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:uUm$fHOpIHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
"Daniel" <Mahonri@xxxxxxxxxxxx> wrote in message
news:%236kh9%23NpIHA.552@xxxxxxxxxxxxxxxxxxxx
Here is the exact message:

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

You haven't shown the line of code this warning refers to.
--
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: Free C Compiler on Windows
    ... It was a minor problem with a declaration ... A declaration like "long long unsigned int". ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • [PATCH] drivers/acpi/asus_acpi.c unsigned comparison
    ... The return of parse_arg is an int, but count is declared as an unsigned int, and later checked versus zero, ... This patch fixes the declaration of count in both functions. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • [PATCH 3/7] percpu: clean up percpu variable definitions
    ... Percpu variable definition is about to be updated such that no static ... as,cfq: rename ioc_count uniquely ... volatile DEFINE_PER_CPUfor declaration. ... unsigned int idle_time, wall_time; ...
    (Linux-Kernel)
  • [PATCH 5/9] percpu: clean up percpu variable definitions
    ... Percpu variable definition is about to be updated such that no static ... as,cfq: rename ioc_count uniquely ... volatile DEFINE_PER_CPUfor declaration. ... unsigned int idle_time, wall_time; ...
    (Linux-Kernel)
  • [PATCH 09/10] filemap: trivial code cleanups
    ... remove a redudant page_cache_readdeclaration ... unsigned long offset; ... unsigned int prev_offset; ...
    (Linux-Kernel)