From 1d5b656dc719f7411c96a2f416ad261bdfbca59b Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 14 Mar 2008 17:49:30 +0000 Subject: Use a special typedef, Pipe::message_id, rather than a bare u32bit, to represent the message number in a Pipe --- src/pipe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pipe.cpp') diff --git a/src/pipe.cpp b/src/pipe.cpp index f821a9ffe..a19cff258 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -100,7 +100,7 @@ bool Pipe::end_of_data() const /************************************************* * Set the default read message * *************************************************/ -void Pipe::set_default_msg(u32bit msg) +void Pipe::set_default_msg(message_id msg) { if(msg >= message_count()) throw Invalid_Argument("Pipe::set_default_msg: msg number is too high"); @@ -284,7 +284,7 @@ u32bit Pipe::message_count() const /************************************************* * Static Member Variables * *************************************************/ -const u32bit Pipe::LAST_MESSAGE = 0xFFFFFFFE; -const u32bit Pipe::DEFAULT_MESSAGE = 0xFFFFFFFF; +const Pipe::message_id Pipe::LAST_MESSAGE = static_cast(-2); +const Pipe::message_id Pipe::DEFAULT_MESSAGE = static_cast(-1); } -- cgit v1.2.3