Skip to content

Commit

Permalink
Fix gcc warning (#596)
Browse files Browse the repository at this point in the history
# Description
Trivial fix of a gcc warning

## Type of change
- [x] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Test update

## Checklist for the reviewer
This checklist should be used as a help for the reviewer.

- [ ] Is the change limited to one issue?
- [ ] Does this PR close the issue?
- [ ] Is the code easy to read and understand?
- [ ] Do all new feature have an accompanying new test?
- [ ] Has the documentation been updated as necessary?
  • Loading branch information
jesper-friis authored Aug 14, 2023
2 parents 944f778 + 2a0c85a commit c3d152a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


## Type of change
- [ ] Bug fix
- [ ] Bug fix & code cleanup
- [ ] New feature
- [ ] Documentation update
- [ ] Test update
Expand Down
2 changes: 1 addition & 1 deletion src/pyembed/dlite-python-singletons.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ PyObject *dlite_python_module_error(DLiteErrors code)

/* Create exception */
count = snprintf(excname, sizeof(excname), "dlite.%s", errname);
assert(count > 0 && count < sizeof(excname));
assert(count > 0 && count < (int)sizeof(excname));
errdescr = dlite_errdescr(code);

if (!(exc = PyErr_NewExceptionWithDoc(excname, errdescr, base, NULL)))
Expand Down

0 comments on commit c3d152a

Please sign in to comment.