Module Name:    src
Committed By:   nikita
Date:           Sun Apr 23 20:52:39 UTC 2023

Modified Files:
        src/external/mit/lua/dist/src: lstrlib.c

Log Message:
lua: fix ftb in lstrlib.c for clang

(error: enumeration values 'Knumber' and 'Kdouble' not handled in switch 
[-Werror,-Wswitch])


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/mit/lua/dist/src/lstrlib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/lua/dist/src/lstrlib.c
diff -u src/external/mit/lua/dist/src/lstrlib.c:1.19 src/external/mit/lua/dist/src/lstrlib.c:1.20
--- src/external/mit/lua/dist/src/lstrlib.c:1.19	Sun Apr 16 20:46:17 2023
+++ src/external/mit/lua/dist/src/lstrlib.c	Sun Apr 23 20:52:39 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: lstrlib.c,v 1.19 2023/04/16 20:46:17 nikita Exp $	*/
+/*	$NetBSD: lstrlib.c,v 1.20 2023/04/23 20:52:39 nikita Exp $	*/
 
 /*
 ** Id: lstrlib.c 
@@ -1446,9 +1446,9 @@ typedef enum KOption {
   Kuint,	/* unsigned integers */
 #ifndef _KERNEL
   Kfloat,	/* single-precision floating-point numbers */
-#endif /* _KERNEL */
   Knumber,	/* Lua "native" floating-point numbers */
   Kdouble,	/* double-precision floating-point numbers */
+#endif /* _KERNEL */
   Kchar,	/* fixed-length strings */
   Kstring,	/* strings with prefixed length */
   Kzstr,	/* zero-terminated strings */
@@ -1520,8 +1520,8 @@ static KOption getoption (Header *h, con
     case 'T': *size = sizeof(size_t); return Kuint;
 #ifndef _KERNEL
     case 'f': *size = sizeof(float); return Kfloat;
-#endif /* _KERNEL */
     case 'd': *size = sizeof(double); return Kdouble;
+#endif
 #ifndef _KERNEL
     case 'n': *size = sizeof(lua_Number); return Knumber;
 #else /* _KERNEL */

Reply via email to