[Groonga-commit] groonga/groonga at 34d228a [master] Suppress a warning on MSVC

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 10 23:29:00 JST 2015


Kouhei Sutou	2015-01-10 23:29:00 +0900 (Sat, 10 Jan 2015)

  New Revision: 34d228acbcd22d7da3aa4d6501dad3fd6f274d91
  https://github.com/groonga/groonga/commit/34d228acbcd22d7da3aa4d6501dad3fd6f274d91

  Message:
    Suppress a warning on MSVC
    
        expr.c(967): warning C4305: '+=' : truncation from 'unsigned int' to 'grn_obj_flags' [C:\projects\groonga\lib\libgroonga.vcxproj]

  Modified files:
    lib/grn_str.h

  Modified: lib/grn_str.h (+1 -1)
===================================================================
--- lib/grn_str.h    2015-01-10 23:26:19 +0900 (d283010)
+++ lib/grn_str.h    2015-01-10 23:29:00 +0900 (ade8c04)
@@ -77,7 +77,7 @@ GRN_API grn_str *grn_str_open_(grn_ctx *ctx, const char *str, unsigned int str_l
   if (GRN_BULK_OUTP(buf)) {\
     (buf)->u.b.curr += (len);\
   } else {\
-    (buf)->header.flags += (len);\
+    (buf)->header.flags += (grn_obj_flags)(len);\
   }\
 } while (0)
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index