From 2b655a29a4e4d7e343884b85742aed8a033b6eef Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 7 Apr 2000 12:04:36 +0000 Subject: Changing code to ensure no warnings are produced by compilers. --- src/CellBuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 4d032f94f..c89c1c8dd 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -678,7 +678,7 @@ void CellBuffer::InsertCharStyle(int position, char ch, char style) { bool CellBuffer::SetStyleAt(int position, char style, char mask) { char curVal = ByteAt(position*2 + 1); if ((curVal & mask) != style) { - SetByteAt(position*2 + 1, (curVal & ~mask) | style); + SetByteAt(position*2 + 1, static_cast((curVal & ~mask) | style)); return true; } else { return false; @@ -691,7 +691,7 @@ bool CellBuffer::SetStyleFor(int position, int lengthStyle, char style, char mas while (lengthStyle--) { char curVal = ByteAt(bytePos); if ((curVal & mask) != style) { - SetByteAt(bytePos, (curVal & ~mask) | style); + SetByteAt(bytePos, static_cast((curVal & ~mask) | style)); changed = true; } bytePos += 2; -- cgit v1.2.3