[beast] SFI: added casts to allow using sfi_scanner_parse_or_return in C++ sources



commit 12a042eaeec077775e72a0f6bcd10fb4dac2d479
Author: Stefan Westerfeld <stefan space twc de>
Date:   Sun Jun 26 20:21:55 2011 +0200

    SFI: added casts to allow using sfi_scanner_parse_or_return in C++ sources

 sfi/sfistore.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sfi/sfistore.h b/sfi/sfistore.h
index c1dce89..98cb8b0 100644
--- a/sfi/sfistore.h
+++ b/sfi/sfistore.h
@@ -140,8 +140,8 @@ void            sfi_rstore_quick_scan         (SfiRStore      *rstore,
 
 /* --- convenience --- */
 #define sfi_scanner_parse_or_return(scanner, token)  G_STMT_START{ \
-  guint _t = (token); \
-  if (g_scanner_get_next_token (scanner) != _t) \
+  SfiTokenType _t = (SfiTokenType) (token); \
+  if ((SfiTokenType) g_scanner_get_next_token (scanner) != _t) \
     return _t; \
 }G_STMT_END
 #define sfi_scanner_peek_or_return(scanner, token)   G_STMT_START{ \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]