diff options
author | lloyd <[email protected]> | 2008-03-14 17:49:30 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-03-14 17:49:30 +0000 |
commit | 1d5b656dc719f7411c96a2f416ad261bdfbca59b (patch) | |
tree | 09586fbe9d266c7273d8fc88f801240004b15bf8 /src/pipe.cpp | |
parent | 83de95aacd2b1e82f885b62676622f2723276671 (diff) |
Use a special typedef, Pipe::message_id, rather than a bare u32bit,
to represent the message number in a Pipe
Diffstat (limited to 'src/pipe.cpp')
-rw-r--r-- | src/pipe.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<Pipe::message_id>(-2); +const Pipe::message_id Pipe::DEFAULT_MESSAGE = static_cast<Pipe::message_id>(-1); } |