[Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow]
Date | 2013-03-02 13:11 |
From | Felipe Sateler |
Subject | [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
The Lua opcodes are giving me that warning, because dsblksiz is uint16 (max 65535), but sizeof(lua_opcall) and sizeof(lua_opcall_off) are 98368 on my machine.
The large size seems to be the fault of a 0x3000 sized array of pointers, which in a 64bit machine yields 0x3000 * 8 = 98304. 32bit may be spared of the problem, since pointer size is 4 bytes instead of 8.
It seems to me that 12288 arguments is a bit overkill. Can the size be reduced? 0x300 should be enough for everybody (tm) and eliminate this problem. Saludos, Felipe Sateler |
Date | 2013-03-02 15:46 |
From | Michael Gogins |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
I will fix this, thanks for the bug report. Regards, Mike On Sat, Mar 2, 2013 at 8:11 AM, Felipe Sateler <fsateler@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-03-02 16:13 |
From | Michael Gogins |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
I have fixed this now in both 5 and 6. The size is now 1000 (decimal) pointers to MYFLT. Thanks again, Mike
On Sat, Mar 2, 2013 at 8:11 AM, Felipe Sateler <fsateler@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-03-02 16:51 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
Great, thanks On Sat, Mar 2, 2013 at 1:13 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
Saludos, Felipe Sateler |
Date | 2013-03-02 16:56 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
BTW, csound6 CsoundAC is failing to build for me. frontends/CsoundAC/ChordSpace.hpp:3536:24: error: ‘R’ was not declared in this scope
On Sat, Mar 2, 2013 at 1:51 PM, Felipe Sateler <fsateler@gmail.com> wrote:
Saludos, Felipe Sateler |
Date | 2013-03-02 17:45 |
From | Michael Gogins |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
You need to enable c++11 for that. R denotes a multi-line string constant introduced in c++11. Regards, Mike
On Sat, Mar 2, 2013 at 11:56 AM, Felipe Sateler <fsateler@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-03-02 18:59 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
OK, probably needs to be tested for and enabled for CsoundAC. UNfortunately gcc supports c++11 only from 4.7 onwards. Or is this supported in c++0x?
On Sat, Mar 2, 2013 at 2:45 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
Saludos, Felipe Sateler |
Date | 2013-03-02 19:11 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
Also, c++11 seems to break abi compatibility in gcc: On Sat, Mar 2, 2013 at 3:59 PM, Felipe Sateler <fsateler@gmail.com> wrote:
Saludos, Felipe Sateler |
Date | 2013-03-02 19:13 |
From | Michael Gogins |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
It began to be supported along the way somewhere in c++0x, not sure just when. But I believe before 4.7. Regards, Mike
On Sat, Mar 2, 2013 at 1:59 PM, Felipe Sateler <fsateler@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-03-02 20:02 |
From | Michael Gogins |
Subject | Re: [Cs-dev] warning: large integer implicitly truncated to unsigned type [-Woverflow] |
Attachments | None None |
I see that. I use std throughout my code. I think if you enable c++0x for everything that includes the C++ standard library it should be OK. Or we could enable it for all C++. This of course is what I do when I build it. Regards, Mike On Sat, Mar 2, 2013 at 2:13 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |