Skip to content

Commit

Permalink
Corrected error code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 21, 2023
1 parent 599979c commit c0326cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_imagingft.c
Expand Up @@ -167,7 +167,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 c0326cd

Please sign in to comment.