Browse Source

Pretty: specialize integer comparison

nottui-full-sensor
Frédéric Bour 12 months ago
committed by Frédéric Bour
parent
commit
7faf6d86c5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/nottui-pretty/nottui_pretty.ml

+ 2
- 2
lib/nottui-pretty/nottui_pretty.ml View File

@ -271,8 +271,8 @@ let rec pretty_flat = function
this ugly 100-lines long implementation.
*)
let maxi i j = if i < j then j else i
let mini i j = if i < j then i else j
let maxi i j : int = if i < j then j else i
let mini i j : int = if i < j then i else j
let (+++) i j = let result = i + j in if result < 0 then max_int else result
let nonflat_line ui =


Loading…
Cancel
Save