Skip to content

Commit

Permalink
Remove unnecessary import statements and fix unsafe code in vcl.c.v
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 19, 2023
1 parent 676b8dc commit 8ca0770
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion easings/easings_test.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import vsl.easings
import math
import vsl.float.float64

// Linear tests
Expand Down
1 change: 0 additions & 1 deletion fit/linear_test.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import vsl.fit
import vsl.float.float64
import math

fn test_linear_fit01() {
// data
Expand Down
2 changes: 1 addition & 1 deletion vcl/vcl.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8ca0770

Please sign in to comment.