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/DocumentAccessor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DocumentAccessor.cxx') diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx index e6eb1d935..d28840c16 100644 --- a/src/DocumentAccessor.cxx +++ b/src/DocumentAccessor.cxx @@ -101,7 +101,7 @@ void DocumentAccessor::ColourTo(unsigned int pos, int chAttr) { Flush(); if (validLen + (pos - startSeg + 1) >= bufferSize) { // Too big for buffer so send directly - pdoc->SetStyleFor(pos - startSeg + 1, chAttr); + pdoc->SetStyleFor(pos - startSeg + 1, static_cast(chAttr)); } else { if (chAttr != chWhile) chFlags = 0; -- cgit v1.2.3