Skip to content
Snippets Groups Projects
Commit 97f2cdcc authored by Albrecht Schlosser's avatar Albrecht Schlosser
Browse files

Fix copyright, a typo, and remaining casts (#1207)

make remaining casts consistent with other casts of the same
variables
parent d5612afd
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
// Copyright 1997-2011 by Easy Software Products.
// Image support by Matthias Melcher, Copyright 2000-2009.
//
// Copyright 2013-2021 by Bill Spitzak and others.
// Copyright 2013-2025 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
......@@ -222,7 +222,7 @@ void Fl_JPEG_Image::load_jpg_(const char *filename, const char *sharename, const
// The following variables are pointers allocating some private space that
// is not reset by 'setjmp()'. At least under macOS, it's necessay to make
// these variables volatile to avoid errors occuring when compiled with -O1 (issue #1207).
// these variables volatile to avoid errors occurring when compiled with -O1 (issue #1207).
volatile char* max_finish_decompress_err; // count errors and give up after a while
volatile char* max_destroy_decompress_err; // to avoid recursion and deadlock
......@@ -336,8 +336,8 @@ void Fl_JPEG_Image::load_jpg_(const char *filename, const char *sharename, const
jpeg_finish_decompress(&dinfo);
jpeg_destroy_decompress(&dinfo);
free((char*)max_destroy_decompress_err);
free((char*)max_finish_decompress_err);
free((void*)max_destroy_decompress_err);
free((void*)max_finish_decompress_err);
if (*fp)
fclose(*fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment