summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_view_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdf_view_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdf_view_embeddertest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_view_embeddertest.cpp b/fpdfsdk/fpdf_view_embeddertest.cpp
index 580ba76e31..7cc5478808 100644
--- a/fpdfsdk/fpdf_view_embeddertest.cpp
+++ b/fpdfsdk/fpdf_view_embeddertest.cpp
@@ -75,10 +75,10 @@ TEST_F(FPDFViewEmbeddertest, EmptyDocument) {
}
{
-#ifndef PDF_ENABLE_XFA
- const unsigned long kExpected = 0;
-#else
+#ifdef PDF_ENABLE_XFA
const unsigned long kExpected = static_cast<uint32_t>(-1);
+#else
+ const unsigned long kExpected = 0;
#endif
EXPECT_EQ(kExpected, FPDF_GetDocPermissions(document()));
}