summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-21 13:37:22 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-21 13:37:22 +0100
commit97f2cdcc2933bf05854ffa8d8672c4829a552ff8 (patch)
treea5c2e062465d44fc2922f775ea19d4ffb7b52ecd
parentd5612afd61e747e2ef60e21951f728bc17d83422 (diff)
Fix copyright, a typo, and remaining casts (#1207)
make remaining casts consistent with other casts of the same variables
-rw-r--r--src/Fl_JPEG_Image.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index 55e66be68..481481c07 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -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);