Skip to content

Commit

Permalink
Corrected error code
Browse files Browse the repository at this point in the history
Co-authored-by: nulano <nulano@nulano.eu>
  • Loading branch information
radarhere and nulano committed Jun 13, 2023
1 parent 8f3ccff commit 5389715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ getfont(PyObject *self_, PyObject *args, PyObject *kw) {
/* Don't free this before FT_Done_Face */
self->font_bytes = PyMem_Malloc(font_bytes_size);
if (!self->font_bytes) {
error = 65; // Out of Memory in Freetype.
error = FT_Err_Out_Of_Memory;
}
if (!error) {
memcpy(self->font_bytes, font_bytes, (size_t)font_bytes_size);
Expand Down

0 comments on commit 5389715

Please sign in to comment.