void main(void) {
go_away(now());
}
Maybe we need to lock this down ? :)
I vote for that, however it's done.
But, the spam was included with your
comment! Poisoning our Bayes filters!
- Dave
Some brief change notes at
http://robust.cs.unm.edu/doku.php?id=news
- Dave
Error when building on x86_64 Linux:
g++ -O0 -g3 -Wall -pedantic -Werror -Wundef -Winline --param
max-inline-insns-single=24 -I../../../src/include -DHOST_MODE -D
HOST_POSIX -c -MMD -MP -MF"../../../targets/host/build/SFBPrint.d"
-MT"../../../targets/host/build/SFBPrint.d"
-o"../../../targets/host/build/SFBPrint.o" "SFBPrint.cpp"
SFBPrint.cpp: In function ‘u8* makePacketPrinter(u8&, u8*, u32, u8)’:
SFBPrint.cpp:122: error: cast from ‘u8*’ to ‘u32’ loses precision
SFBPrint.cpp:123: error: cast from ‘u8*’ to ‘u32’ loses precision
make[2]: *** [../../../targets/host/build/SFBPrint.o] Error 1
make[2]: Leaving directory `/home/barrick/IXM/SFB/src/components/library'
This code assumes that sizeof(u8*) ==sizeof(u32), which isn't true on
64-bit platforms. I'm not clear on what this function is doing
exactly, so I don't have a five minute fix, just a bug report.
Does changing SFBPrint.cpp:122-124 to
uptr alignedAddress = (((uptr) buffer)+3)&~3; // Word align
u32 wasted = (u32) (alignedAddress-((uptr) buffer));
PacketPrinterHeader * pph = (PacketPrinterHeader*) alignedAddress;
build cleanly?
- Dave
Some brief change notes at
http://robust.cs.unm.edu/doku.php?id=news
Apologies for the rapid release. Will
try to keep it down to not more than
weekly or so, going forward.
- Dave