summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/fxfa_basic.h4
-rw-r--r--xfa/fxfa/parser/cxfa_localevalue.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h
index 96b483d978..d040bb3873 100644
--- a/xfa/fxfa/fxfa_basic.h
+++ b/xfa/fxfa/fxfa_basic.h
@@ -95,7 +95,7 @@ enum XFA_XDPPACKET_FLAGS {
XFA_XDPPACKET_FLAGS_SUPPORTMANY = 16,
};
-enum class XFA_AttributeEnum : uint32_t {
+enum class XFA_AttributeEnum : uint16_t {
Asterisk,
Slash,
Backslash,
@@ -611,7 +611,7 @@ enum class XFA_Attribute : uint8_t {
Unknown = 255,
};
-enum class XFA_Element : int32_t {
+enum class XFA_Element : int16_t {
Unknown = -1,
Ps,
diff --git a/xfa/fxfa/parser/cxfa_localevalue.cpp b/xfa/fxfa/parser/cxfa_localevalue.cpp
index 09e3577887..756d4c2307 100644
--- a/xfa/fxfa/parser/cxfa_localevalue.cpp
+++ b/xfa/fxfa/parser/cxfa_localevalue.cpp
@@ -430,8 +430,8 @@ bool CXFA_LocaleValue::ValidateCanonicalValue(const WideString& wsValue,
bool CXFA_LocaleValue::ValidateCanonicalDate(const WideString& wsDate,
CFX_DateTime* unDate) {
- static const uint16_t LastDay[12] = {31, 28, 31, 30, 31, 30,
- 31, 31, 30, 31, 30, 31};
+ static const uint8_t LastDay[12] = {31, 28, 31, 30, 31, 30,
+ 31, 31, 30, 31, 30, 31};
static const uint16_t wCountY = 4;
static const uint16_t wCountM = 2;
static const uint16_t wCountD = 2;