diff options
-rw-r--r-- | Detector_Building.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Detector_Building.ino b/Detector_Building.ino index c3c6af4..9d53145 100644 --- a/Detector_Building.ino +++ b/Detector_Building.ino @@ -39,7 +39,7 @@ void sort(double a[], int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n - 1; j++) { if (a[j] > a[j + 1]) { - int tmp = a[j]; + double tmp = a[j]; a[j] = a[j + 1]; a[j + 1] = tmp; } |