Discussion:
[Audacity-devel] Debug build broken on Linux
Steve the Fiddle
2017-04-16 10:24:40 UTC
Permalink
void Meter::RestoreState(const State &state)
The cast from Meter* to int causes a fatal build error on Linux
(in the WxLogDebug line).

I don't understand casting from Meter* to int
What is that supposed to do?

Steve
James Crook
2017-04-16 10:50:28 UTC
Permalink
Sorry. Fixed in
https://github.com/audacity/audacity/commit/795cbe0c0ccbece944b10c75e75618de8c2b9574

That was a left over from some debugging where I was tracking down the
mysterious problem of meters not working. The cast to int was a sloppy
way to see a pointer, on a 64 bit machine. I should have used %p in the
print formatting.
Post by Steve the Fiddle
void Meter::RestoreState(const State &state)
The cast from Meter* to int causes a fatal build error on Linux
(in the WxLogDebug line).
I don't understand casting from Meter* to int
What is that supposed to do?
Steve
Steve the Fiddle
2017-04-16 11:28:50 UTC
Permalink
Post by James Crook
Sorry. Fixed in
https://github.com/audacity/audacity/commit/795cbe0c0ccbece944b10c75e75618de8c2b9574
That was a left over from some debugging where I was tracking down the
mysterious problem of meters not working. The cast to int was a sloppy
way to see a pointer, on a 64 bit machine. I should have used %p in the
print formatting.
OK, I see.
Debug build now works, thanks.

Steve
Post by James Crook
Post by Steve the Fiddle
void Meter::RestoreState(const State &state)
The cast from Meter* to int causes a fatal build error on Linux
(in the WxLogDebug line).
I don't understand casting from Meter* to int
What is that supposed to do?
Steve
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Loading...