about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-18 02:51:24 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-18 02:52:31 +0100
commit6ccd70418dd9c219cb882e60bd96873255b077e6 (patch)
treeeacad333b831f27a286012c7949ac0a4ea6caf50 /src/bindings
parentc84d9e84d4233daf242c6b72c11c51c80ff32315 (diff)
downloadchawan-6ccd70418dd9c219cb882e60bd96873255b077e6.tar.gz
libregexp: cast flags to the right size
We have less than 8 flags, so the set's size is 1.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/libregexp.nim2
1 files changed, 1 insertions, 1 deletions
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)