Commits

Anonymous committed f80dd03

Replaced occurrances of the deprecated operator 'or' with '||'

As reported by Damien Doligez in https://bitbucket.org/skskeyserver/sks-keyserver/issue/2/use-of-deprecated-operator-or

  • Participants
  • Parent commits ad3d160

Comments (0)

Files changed (3)

     key dump ahead of download/import, and direct verification of checksums
     using md5sum -c <metadata-file>.  
   - OID fixes for ECC -- force int64 use (fixes issue on 32-bit systems)
-  - HTML cleanup in 1.1.2 broke the spider tool. Fixed
+  - Replaced occurrances of the deprecated operator 'or' with '||'
 
 1.1.4
   - Fix X-HKP-Results-Count so that limit=0 returns no results, but include
   Array.fold_left ~f:(fun a b -> a && (test b)) ~init:true array
 
 let exists ~f:test array =
-  Array.fold_left ~f:(fun a b -> a or (test b)) ~init:false array
+  Array.fold_left ~f:(fun a b -> a || (test b)) ~init:false array
 
 let mem el array =
   let length = Array.length array in
   let test () =
     let a = randrange rfunc two (n -! one) in
     let y = Number.powmod a r n in
-    if y =! one or y =! neg_one then Prime
+    if y =! one || y =! neg_one then Prime
     else
       let rec loop y j =
         if y =! neg_one then Prime