M80: Properly write out enums in CFX_PSRenderer::SetGraphState().

Write out enum values by explicitly casting them to int. As is, the enum
values are of type uint8_t, which may be interpreted as chars with new
iostream libraries.

Bug: chromium:1030689
Change-Id: I4d08a1967f33d2d41c75032560a2e080be2a788e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/63474
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
(cherry picked from commit 5a1c64fa5bc9646b233350a09cc8aa856500f270)
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/66090
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxge/win32/cfx_psrenderer.cpp b/core/fxge/win32/cfx_psrenderer.cpp
index d7594be..f9f7de2 100644
--- a/core/fxge/win32/cfx_psrenderer.cpp
+++ b/core/fxge/win32/cfx_psrenderer.cpp
@@ -249,7 +249,7 @@
   std::ostringstream buf;
   if (!m_bGraphStateSet ||
       m_CurGraphState.m_LineCap != pGraphState->m_LineCap) {
-    buf << pGraphState->m_LineCap << " J\n";
+    buf << static_cast<int>(pGraphState->m_LineCap) << " J\n";
   }
   if (!m_bGraphStateSet ||
       m_CurGraphState.m_DashArray != pGraphState->m_DashArray) {
@@ -260,7 +260,7 @@
   }
   if (!m_bGraphStateSet ||
       m_CurGraphState.m_LineJoin != pGraphState->m_LineJoin) {
-    buf << pGraphState->m_LineJoin << " j\n";
+    buf << static_cast<int>(pGraphState->m_LineJoin) << " j\n";
   }
   if (!m_bGraphStateSet ||
       m_CurGraphState.m_LineWidth != pGraphState->m_LineWidth) {