diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 42390c3acf6..d14e12e25e1 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1988,7 +1988,9 @@ clip-path use gecko_bindings::structs::{NS_STYLE_COLUMN_COUNT_AUTO, nsStyleColumn_kMaxColumnCount}; self.gecko.mColumnCount = match v.0 { - Some(number) => cmp::min(number, nsStyleColumn_kMaxColumnCount), + Some(number) => unsafe { + cmp::min(number, nsStyleColumn_kMaxColumnCount) + }, None => NS_STYLE_COLUMN_COUNT_AUTO }; }