Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
9768f59e
Commit
9768f59e
authored
Sep 25, 2018
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Revert to using 'int' in scheduler_task_dependency_name(). ICC wasn't happy with enums.
parent
15ac294c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scheduler.c
+4
-4
4 additions, 4 deletions
src/scheduler.c
with
4 additions
and
4 deletions
src/scheduler.c
+
4
−
4
View file @
9768f59e
...
...
@@ -120,14 +120,14 @@ void scheduler_addunlock(struct scheduler *s, struct task *ta,
* @param ta_subtype The #task type.
* @param ta_name (return) The formatted string
*/
void
scheduler_task_dependency_name
(
enum
task_types
ta_type
,
enum
task_subtypes
ta_subtype
,
void
scheduler_task_dependency_name
(
int
ta_type
,
int
ta_subtype
,
char
*
ta_name
)
{
/* Check input */
if
(
ta_type
>=
task_type_count
)
error
(
"Unknown task type %i"
,
ta_type
);
if
((
ta_type
<
0
)
||
(
ta_type
>=
task_type_count
))
error
(
"Unknown task type %i"
,
ta_type
);
if
(
ta_subtype
>=
task_subtype_count
)
if
((
ta_subtype
<
0
)
||
(
ta_subtype
>=
task_subtype_count
)
)
error
(
"Unknown task subtype %i with type %s"
,
ta_subtype
,
taskID_names
[
ta_type
]);
...
...
...
...
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
sign in
to comment