diff --git a/easings/easings_test.v b/easings/easings_test.v index 22715cd16..9c7951221 100644 --- a/easings/easings_test.v +++ b/easings/easings_test.v @@ -1,5 +1,4 @@ import vsl.easings -import math import vsl.float.float64 // Linear tests diff --git a/fit/linear_test.v b/fit/linear_test.v index ce1936a98..efc0c3e07 100644 --- a/fit/linear_test.v +++ b/fit/linear_test.v @@ -1,6 +1,5 @@ import vsl.fit import vsl.float.float64 -import math fn test_linear_fit01() { // data diff --git a/vcl/vcl.c.v b/vcl/vcl.c.v index a7ae3c861..8bb24a65b 100644 --- a/vcl/vcl.c.v +++ b/vcl/vcl.c.v @@ -12,7 +12,7 @@ pub fn get_devices(device_type DeviceType) ![]&Device { if ret != success { return error_from_code(ret) } - mut device_ids := []ClDeviceId{len: int(n)} + mut device_ids := unsafe { []ClDeviceId{len: int(n)} } ret = cl_get_device_i_ds(p, ClDeviceType(device_type), n, unsafe { &device_ids[0] }, unsafe { nil }) if ret != success {