diff options
Diffstat (limited to 'src/net/netcomputer.cpp')
-rw-r--r-- | src/net/netcomputer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp index 47d7ea1a..345b408d 100644 --- a/src/net/netcomputer.cpp +++ b/src/net/netcomputer.cpp @@ -92,10 +92,11 @@ operator <<(std::ostream &os, const NetComputer &comp) << ((comp.mPeer->address.host & 0xff000000) >> 24); else // big-endian - os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "." - << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "." - << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "." - << ((comp.mPeer->address.host & 0x000000ff) >> 0); + // TODO: test this + os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "." + << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "." + << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "." + << ((comp.mPeer->address.host & 0x000000ff)); return os; } |