Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Will2.Mcgregor@live.uwe.ac.uk
fltk
Commits
97f2cdcc
Commit
97f2cdcc
authored
3 months ago
by
Albrecht Schlosser
Browse files
Options
Downloads
Patches
Plain Diff
Fix copyright, a typo, and remaining casts (#1207)
make remaining casts consistent with other casts of the same variables
parent
d5612afd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Fl_JPEG_Image.cxx
+4
-4
4 additions, 4 deletions
src/Fl_JPEG_Image.cxx
with
4 additions
and
4 deletions
src/Fl_JPEG_Image.cxx
+
4
−
4
View file @
97f2cdcc
...
...
@@ -4,7 +4,7 @@
// Copyright 1997-2011 by Easy Software Products.
// Image support by Matthias Melcher, Copyright 2000-2009.
//
// Copyright 2013-202
1
by Bill Spitzak and others.
// Copyright 2013-202
5
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 occur
r
ing 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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment