Skip to content

Commit 92dedb0

Browse files
committed
chore: Bump OSX compiler version
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent c427a1d commit 92dedb0

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
include:
21-
- os: "macos-13"
21+
# - os: "macos-13"
2222
- os: "macos-14"
2323
fail-fast: false
2424

src/util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ namespace cmcpp
2424
return ValType::Variant;
2525
case ValType::Result:
2626
return ValType::Variant;
27+
default:
28+
return t;
2729
}
28-
return t;
2930
}
3031

3132
bool convert_int_to_bool(uint8_t i)

test/main.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,24 @@ TEST_CASE("Float")
106106
flat_v = lower_flat(*cx, std::numeric_limits<double>::infinity());
107107
b = lift_flat<float64_t>(*cx, flat_v);
108108
CHECK(std::isnan(b));
109+
110+
using FloatTuple = tuple_t<float32_t, float64_t>;
111+
FloatTuple ft = {42.0, 43.0};
112+
auto flat_ft = lower_flat(*cx, ft);
113+
auto ft2 = lift_flat<FloatTuple>(*cx, flat_ft);
114+
CHECK(ft == ft2);
115+
116+
using FloatList = list_t<float32_t>;
117+
FloatList fl = {42.0, 43.0};
118+
auto flat_fl = lower_flat(*cx, fl);
119+
auto fl2 = lift_flat<FloatList>(*cx, flat_fl);
120+
CHECK(fl == fl2);
121+
122+
using Float64List = list_t<float64_t>;
123+
Float64List fl64 = {42.0, 43.0};
124+
auto flat_fl64 = lower_flat(*cx, fl64);
125+
auto fl642 = lift_flat<Float64List>(*cx, flat_fl64);
126+
CHECK(fl64 == fl642);
109127
}
110128

111129
const char *const hw = "hello World!";

0 commit comments

Comments
 (0)