Skip to content

Commit

Permalink
Issue-60: Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Aug 30, 2017
1 parent 71e45fb commit aa940d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Kokkos_ArithTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1498,9 +1498,7 @@ class ArithTraits<char> {
return false;
}
static KOKKOS_FORCEINLINE_FUNCTION mag_type abs (const val_type x) {
// This may trigger a compiler warning if char is unsigned. On
// all platforms I have encountered, char is signed, but the C(++)
// standard does not require this.
// This avoids warnings based on whether char is signed or unsigned
return integer_abs<char>::abs(x);
}
static KOKKOS_FORCEINLINE_FUNCTION val_type zero () {
Expand Down

0 comments on commit aa940d4

Please sign in to comment.