[前][次][番号順一覧][スレッド一覧]

ruby-changes:43182

From: nobu <ko1@a...>
Date: Thu, 2 Jun 2016 11:30:48 +0900 (JST)
Subject: [ruby-changes:43182] nobu:r55256 (trunk): crypt.c: fix syntax error on mswin

nobu	2016-06-02 11:30:43 +0900 (Thu, 02 Jun 2016)

  New Revision: 55256

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55256

  Log:
    crypt.c: fix syntax error on mswin
    
    * missing/crypt.c (constdatablock): fix error on mswin. Visual C
      does not accept an empty initializer.

  Modified files:
    trunk/missing/crypt.c
Index: missing/crypt.c
===================================================================
--- missing/crypt.c	(revision 55255)
+++ missing/crypt.c	(revision 55256)
@@ -347,7 +347,7 @@ STATIC void init_perm(C_block perm[64/CH https://github.com/ruby/ruby/blob/trunk/missing/crypt.c#L347
 #define init_des() ((void)0)
 #endif
 
-static const C_block constdatablock = {}; /* encryption constant */
+static const C_block constdatablock = {{0}}; /* encryption constant */
 
 #define KS	(data->KS)
 #define cryptresult (data->cryptresult)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]