aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTa180m2020-01-18 18:26:51 -0600
committerGitHub2020-01-18 18:26:51 -0600
commite0841d54009a294261d0fecb4c0a61586f5edc6b (patch)
tree7f5e01e19f7295f3c330b64f8000af47a31cba02
parent94fb474945791db8fa3c2aa4ea92eaec351ffee0 (diff)
Update Detector_Building.ino
-rw-r--r--Detector_Building.ino2
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;
}