[Gtkradiant] [Bug 1109] Wrong calculation of
BEZIERCURVETREE_MAX_INDEX
bugzilla-daemon at zerowing.idsoftware.com
bugzilla-daemon at zerowing.idsoftware.com
Tue Sep 12 06:19:17 CDT 2006
http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=1109
------- Additional Comments From ondrej at svetlik.info 2006-09-12 06:19 -------
Little demonstration:
> cat size_t.cpp
#include <iostream>
int main(void) {
std::cout << (1 << ((sizeof(std::size_t) * 8) - 1)) << std::endl;
std::cout << (((std::size_t) 1) << ((sizeof(std::size_t) * 8) - 1)) << std::endl;
}
> g++ -o size_t size_t.cpp
size_t.cpp: In function int main():
size_t.cpp:4: warning: left shift count >= width of type
> ./size_t
0
9223372036854775808
>
--
Configure bugmail: http://zerowing.idsoftware.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Gtkradiant
mailing list