Markus Mottl avatar Markus Mottl committed 57cd136

Fixed fragile match

Comments (0)

Files changed (1)

   let min_dim = ofs + (min_elem - 1) * abs inc in
   match vec with
   | Some vec -> check_vec loc vec_name vec min_dim; vec
-  | _ -> vec_create min_dim
+  | None -> vec_create min_dim
 
 let check_dim1_mat loc mat_name mat mat_r m_name m =
   let dim1 = Array2.dim1 mat in
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.