Skip to content

Commit

Permalink
Make progam safe
Browse files Browse the repository at this point in the history
  • Loading branch information
demoitem committed Sep 7, 2022
1 parent a2f05b9 commit f706345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sudoku/src/Sudoku.m3
@@ -1,7 +1,7 @@
(* Copyright (C) 2017 Peter McKinna. All rights reserved. *)
(* See file COPYRIGHT-BSD for details. *)

UNSAFE MODULE Sudoku EXPORTS Main;
MODULE Sudoku EXPORTS Main;

IMPORT IntSeq,IntRefTbl,Random,RandomPerm,Text,Word;
IMPORT IO,Fmt;
Expand Down Expand Up @@ -354,7 +354,7 @@ PROCEDURE ParseGrid(READONLY puzzle : ARRAY OF CHAR) : ValuesType RAISES {Contra
END ParseGrid;

(* Depth first search for a solution *)
PROCEDURE Search(values : ValuesType) : RefVal RAISES {NotFound} = <*NOWARN*>
PROCEDURE Search(READONLY values : ValuesType) : RefVal RAISES {NotFound} =
VAR
min : Size;
sol : RefVal;
Expand Down

0 comments on commit f706345

Please sign in to comment.