Skip to content

Commit

Permalink
Quiet conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Jan 26, 2024
1 parent 1fc9811 commit 1a45263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/df1b2-separable/df1b2fn2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ void df1b2variable::initialize(void)
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#endif
#if (__cplusplus >= 201703L)
[[maybe_unused]]
#endif
size_t total_bytes=sizeof(df1b2_header)+sizeof(df1b2_header);
initialize(nvar);
Expand Down
4 changes: 2 additions & 2 deletions src/linad99/dtweedie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include <type_traits>
#include <fvar.hpp>

int imax2(int a, double v)
unsigned int imax2(unsigned int a, double v)
{
int b = static_cast<int>(v);
unsigned int b = static_cast<unsigned int>(v);
return a > b ? a : b;
}
unsigned int imin2(unsigned int a, unsigned int b)
Expand Down

0 comments on commit 1a45263

Please sign in to comment.