summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index a63d56b..731949a 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -52,12 +52,12 @@ float CtoFfunc(float CtoFval)
// Converts Windspeed and Temp to Winchill
-float Wchfunc(float Wchcalc)
+float Wchfunc(float& Wchcalc)
{
Wchcalc = 0;
Wchcalc = 35.74f + .6215f * TvalF - 35.75f * (pow(Wspeed, 0.16f)) + 0.4275f * TvalF * (pow(Wspeed, 0.16f));
Wchill = Wchcalc;
- return (Wchill);
+ return Wchill;
}