aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-08-25 10:11:54 +0200
committerGitHub <noreply@github.com>2023-08-25 08:11:54 +0000
commit65138add46196c22ea4a97c4cf4f1906689158ff (patch)
treec491f4e8a6647377b8ccacc899e62378c7610979 /components/script/dom/bindings/codegen/CodegenRust.py
parentc0898c3a00878d9ac6a7994a8e2b2ae22d030ef1 (diff)
downloadservo-65138add46196c22ea4a97c4cf4f1906689158ff.tar.gz
servo-65138add46196c22ea4a97c4cf4f1906689158ff.zip
Fix the 32-bit build (#30204)
Use the `libc::char` to represent a pointer to characters rather than `i8`. This fixes the build for the Raspberry Pi and Android 32-bit.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 985a6c590c9..0c39ecf2f3e 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -6020,11 +6020,11 @@ class CGDOMJSProxyHandler_getPrototype(CGAbstractExternMethod):
class CGDOMJSProxyHandler_className(CGAbstractExternMethod):
def __init__(self, descriptor):
args = [Argument('*mut JSContext', 'cx'), Argument('RawHandleObject', '_proxy')]
- CGAbstractExternMethod.__init__(self, descriptor, "className", "*const i8", args, doesNotPanic=True)
+ CGAbstractExternMethod.__init__(self, descriptor, "className", "*const libc::c_char", args, doesNotPanic=True)
self.descriptor = descriptor
def getBody(self):
- return '%s as *const u8 as *const i8' % str_to_const_array(self.descriptor.name)
+ return '%s as *const u8 as *const libc::c_char' % str_to_const_array(self.descriptor.name)
def definition_body(self):
return CGGeneric(self.getBody())