]> git.feebdaed.xyz Git - 0xmirror/msquic.git/commitdiff
patch prefix 'L' on unevaluated string literal having no effect causing error (#5123)
authorFelix <99040669+snw7@users.noreply.github.com>
Wed, 8 Oct 2025 18:01:25 +0000 (20:01 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Oct 2025 18:01:25 +0000 (11:01 -0700)
src/inc/quic_platform_posix.h

index 6f4affce9efec41b19ba0aec94f193d85bab8460..a8648cfa4692b50f04ab556e61227d22f388ea34 100644 (file)
@@ -302,7 +302,7 @@ CxPlatLogAssert(
     _In_z_ const char* Expr
     );
 
-#define CXPLAT_STATIC_ASSERT(X,Y) static_assert(X, Y);
+#define CXPLAT_STATIC_ASSERT(X,Y) static_assert(X, #Y);
 #define CXPLAT_ANALYSIS_ASSERT(X)
 #define CXPLAT_ANALYSIS_ASSUME(X)
 #define CXPLAT_FRE_ASSERT(exp) ((exp) ? (void)0 : (CxPlatLogAssert(__FILE__, __LINE__, #exp), quic_bugcheck(__FILE__, __LINE__, #exp)));