Skip to content

Commit 8c51e7a

Browse files
committed
Fix GDString.to_pystr
1 parent 997c830 commit 8c51e7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žsrc/godot/builtins_pxd/class.pxd.j2β€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cdef class {{ spec.name }}:
3030
__{{ spec.name }}_constructor_0(&ret._gd_data, NULL)
3131
return ret
3232
{% if spec.name == "GDString" %}
33-
cdef inline gd_string_t to_pystr(self):
33+
cdef inline object to_pystr(self):
3434
return gdstring_to_pystr(&self._gd_data)
3535
{% endif %}
3636
{% for m in spec.members %}

β€Žsrc/godot/builtins_pyx/class.pyx.j2β€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cdef class {{ spec.name }}:
3535
return "<{{ spec.name }}>"
3636
{% if spec.name == "GDString" %}
3737
def __str__(self):
38-
self.to_pystr()
38+
return self.to_pystr()
3939
{% endif %}
4040
{% if spec.constants %}
4141
# Constants

0 commit comments

Comments
Β (0)