summaryrefslogtreecommitdiffstats
path: root/chrome/common/spellcheck_marker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/spellcheck_marker.h')
-rw-r--r--chrome/common/spellcheck_marker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/spellcheck_marker.h b/chrome/common/spellcheck_marker.h
index 4305c22..ac278536 100644
--- a/chrome/common/spellcheck_marker.h
+++ b/chrome/common/spellcheck_marker.h
@@ -29,6 +29,9 @@ class SpellCheckMarker {
: hash(hash), offset(offset) {}
uint32_t hash;
+ // Note: we use uint32_t instead of size_t because this struct is sent over
+ // IPC which could span 32 & 64 bit processes. This is fine since the offset
+ // shouldn't exceed UINT32_MAX even on 64 bit builds.
uint32_t offset;
};