mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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.
This commit is contained in:
parent
c0898c3a00
commit
65138add46
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue