mescc: Recognize U integer suffix.

* module/mescc/compile.scm (cstring->int): Recognize U integer
suffix.  Thanks, Peter de Wachter!
This commit is contained in:
Jan Nieuwenhuizen 2018-10-19 23:31:30 +02:00
parent 34b265df20
commit 0feea9ae52
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1546,6 +1546,7 @@
(define (cstring->int o)
(let ((o (cond ((string-suffix? "ULL" o) (string-drop-right o 3))
((string-suffix? "UL" o) (string-drop-right o 2))
((string-suffix? "U" o) (string-drop-right o 1))
((string-suffix? "LL" o) (string-drop-right o 2))
((string-suffix? "L" o) (string-drop-right o 1))
(else o))))