Skip to content

Commit

Permalink
Merge pull request #111 from bradcray/squash-c-warning
Browse files Browse the repository at this point in the history
Make `shiftDouble` static to avoid C warning
  • Loading branch information
reuster986 authored Sep 16, 2019
2 parents c87c62a + a15faa5 commit 21cb50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RadixSortLSD.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module RadixSortLSD
}

extern {
unsigned long long shiftDouble(double key, long long rshift) {
static unsigned long long shiftDouble(double key, long long rshift) {
// Reinterpret the bits of key as an unsigned 64-bit int (u long long)
// Unsigned because we want to left-extend with zeros
unsigned long long intkey = * (unsigned long long *) &key;
Expand Down

0 comments on commit 21cb50c

Please sign in to comment.