From 6ccd70418dd9c219cb882e60bd96873255b077e6 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 18 Feb 2024 02:51:24 +0100 Subject: libregexp: cast flags to the right size We have less than 8 flags, so the set's size is 1. --- src/bindings/libregexp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bindings') diff --git a/src/bindings/libregexp.nim b/src/bindings/libregexp.nim index d4c10b42..709a0bc0 100644 --- a/src/bindings/libregexp.nim +++ b/src/bindings/libregexp.nim @@ -10,7 +10,7 @@ type LREFlags* = set[LREFlag] func toCInt*(flags: LREFlags): cint = - cast[cint](flags) + cint(cast[uint8](flags)) func toLREFlags*(flags: cint): LREFlags = cast[LREFlags](flags) -- cgit 1.4.1-2-gfad0