Skip to content
Browse files

fix: fail: make to 64bit

  • Loading branch information...
1 parent 92e52f7 commit eadad2f6e2a26f834e84394dcce59c99ddd76163 @ValeriyBushenev ValeriyBushenev committed May 2, 2012
Showing with 66 additions and 66 deletions.
  1. +5 −5 export/mongod/bson.di
  2. +9 −9 export/mongod/mongo.di
  3. +2 −2 export/mongod/myversion.di
  4. +2 −2 export/mongod/net.di
  5. +22 −22 src/mongod/bson.d
  6. +24 −24 src/mongod/mongo.d
  7. +2 −2 src/mongod/net.d
View
10 export/mongod/bson.di
@@ -163,7 +163,7 @@ static int incr = 0;
static int fuzz = 0;
int i;
auto currentTime = Clock.currTime();
-time_t t = currentTime.toUnixTime();
+time_t t = cast(time_t)currentTime.toUnixTime();
if (oid_inc_func)
i = oid_inc_func();
else
@@ -381,15 +381,15 @@ int bson_append_undefined(bson* b, char* name);
int bson_append_string_base(bson* b, char* name, char* value, int len, bson_type type);
int bson_append_string(bson* b, char* name, char* value)
{
-return bson_append_string_base(b,name,value,strlen(value),bson_type.BSON_STRING);
+return bson_append_string_base(b,name,value,cast(int)strlen(value),bson_type.BSON_STRING);
}
int bson_append_symbol(bson* b, char* name, char* value)
{
-return bson_append_string_base(b,name,value,strlen(value),bson_type.BSON_SYMBOL);
+return bson_append_string_base(b,name,value,cast(int)strlen(value),bson_type.BSON_SYMBOL);
}
int bson_append_code(bson* b, char* name, char* value)
{
-return bson_append_string_base(b,name,value,strlen(value),bson_type.BSON_CODE);
+return bson_append_string_base(b,name,value,cast(int)strlen(value),bson_type.BSON_CODE);
}
int bson_append_string_n(bson* b, char* name, char* value, int len)
{
@@ -406,7 +406,7 @@ return bson_append_string_base(b,name,value,len,bson_type.BSON_CODE);
int bson_append_code_w__scope_n(bson* b, char* name, char* code, int len, bson* _scope);
int bson_append_code_w__scope(bson* b, char* name, char* code, bson* _scope)
{
-return bson_append_code_w__scope_n(b,name,code,strlen(code),_scope);
+return bson_append_code_w__scope_n(b,name,code,cast(int)strlen(code),_scope);
}
int bson_append_binary(bson* b, char* name, char type, char* str, int len);
int bson_append_oid(bson* b, char* name, bson_oid_t* oid);
View
18 export/mongod/mongo.di
@@ -63,7 +63,7 @@ conn.replset = cast(mongo_replset*)bson_malloc(mongo_replset.sizeof);
conn.replset.primary_connected = 0;
conn.replset.seeds = null;
conn.replset.hosts = null;
-conn.replset.name = cast(char*)bson_malloc(strlen(name) + 1);
+conn.replset.name = cast(char*)bson_malloc(cast(int)strlen(name) + 1);
memcpy(conn.replset.name,name,strlen(name) + 1);
conn.primary = cast(mongo_host_port*)bson_malloc(mongo_host_port.sizeof);
}
@@ -116,8 +116,8 @@ int mongo_find_one(mongo* conn, char* ns, bson* query, bson* fields, bson* _out)
void mongo_cursor_init(mongo_cursor* cursor, mongo* conn, char* ns)
{
cursor.conn = conn;
-cursor.ns = cast(char*)bson_malloc(strlen(ns) + 1);
-strncpy(cast(char*)cursor.ns,ns,strlen(ns) + 1);
+cursor.ns = cast(char*)bson_malloc(cast(int)strlen(ns) + 1);
+strncpy(cast(char*)cursor.ns,ns,cast(int)strlen(ns) + 1);
cursor.current.data = null;
cursor.reply = null;
cursor.flags = 0;
@@ -175,7 +175,7 @@ int64_t mongo_count(mongo* conn, char* db, char* ns, bson* query);
int mongo_run_command(mongo* conn, char* db, bson* command, bson* _out)
{
bson fields;
-int sl = strlen(db);
+int sl = cast(int)strlen(db);
char* ns = cast(char*)bson_malloc(sl + 5 + 1);
int res;
strcpy(ns,db);
@@ -298,9 +298,9 @@ static void mongo_pass_digest(char* user, char* pass, char[33] hex_digest)
mongo_md5_state_t st;
mongo_md5_byte_t[16] digest;
mongo_md5_init(&st);
-mongo_md5_append(&st,cast(mongo_md5_byte_t*)user,strlen(user));
+mongo_md5_append(&st,cast(mongo_md5_byte_t*)user,cast(int)strlen(user));
mongo_md5_append(&st,cast(mongo_md5_byte_t*)":mongo:",7);
-mongo_md5_append(&st,cast(mongo_md5_byte_t*)pass,strlen(pass));
+mongo_md5_append(&st,cast(mongo_md5_byte_t*)pass,cast(int)strlen(pass));
mongo_md5_finish(&st,digest);
digest2hex(digest,hex_digest);
}
@@ -310,7 +310,7 @@ int mongo_cmd_add_user(mongo* conn, char* db, char* user, char* pass)
bson user_obj;
bson pass_obj;
char[33] hex_digest;
-char* ns = cast(char*)bson_malloc(strlen(db) + strlen(cast(char*)".system.users") + 1);
+char* ns = cast(char*)bson_malloc(cast(int)strlen(db) + cast(int)strlen(cast(char*)".system.users") + 1);
int res;
strcpy(ns,db);
strcpy(ns + strlen(db),cast(char*)".system.users");
@@ -335,13 +335,13 @@ int mongo_message_send(mongo* conn, mongo_message* mm, bool retry = false);
int send(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0..len];
-int ll = sock.send(bb);
+int ll = cast(int)sock.send(bb);
return ll;
}
int recv(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0..len];
-int ll = sock.receive(bb);
+int ll = cast(int)sock.receive(bb);
return ll;
}
void mongo_close_socket(Socket sock)
View
4 export/mongod/myversion.di
@@ -3,9 +3,9 @@ module myversion;
public static char[] author = cast(char[])"Itiu";
-public static char[] date = cast(char[])"Wed Apr 18 11:17:22 2012 +0400";
+public static char[] date = cast(char[])"Sat Apr 28 13:44:34 2012 +0400";
-public static char[] hash = cast(char[])"e32eb7d";
+public static char[] hash = cast(char[])"92e52f7";
View
4 export/mongod/net.di
@@ -13,13 +13,13 @@ import mongod.bson_h;
int send(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0..len];
-int ll = sock.send(bb);
+int ll = cast(int)sock.send(bb);
return ll;
}
int recv(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0..len];
-int ll = sock.receive(bb);
+int ll = cast(int)sock.receive(bb);
return ll;
}
void mongo_close_socket(Socket sock)
View
44 src/mongod/bson.d
@@ -19,7 +19,7 @@ static int _bson_append_string(bson* b, string name, string value)
static int _bson_append_string_base(bson* b, string name, string value, bson_type type)
{
- int sl = value.length + 1;
+ int sl = cast(int)value.length + 1;
if(bson_check_string(b, cast(char*) value, sl - 1) == BSON_ERROR)
return BSON_ERROR;
if(_bson_append_estart(b, type, name, 4 + sl) == BSON_ERROR)
@@ -37,7 +37,7 @@ static int _bson_append_estart(bson* b, int type, string name, int dataSize)
if(name is null)
return BSON_ERROR;
- int len = name.length + 1;
+ int len = cast(int)name.length + 1;
if(bson_ensure_space(b, 1 + len + dataSize) == BSON_ERROR)
{
return BSON_ERROR;
@@ -59,7 +59,7 @@ static int _bson_append_start_array(bson* b, string name)
{
if(_bson_append_estart(b, bson_type.BSON_ARRAY, name, 5) == BSON_ERROR)
return BSON_ERROR;
- b.stack[b.stackPos++] = b.cur - b.data;
+ b.stack[b.stackPos++] = cast(int)(b.cur - b.data);
bson_append32(b, &zero);
return BSON_OK;
}
@@ -76,7 +76,7 @@ static int _bson_append_start_object(bson* b, string name)
{
if(_bson_append_estart(b, bson_type.BSON_OBJECT, name, 5) == BSON_ERROR)
return BSON_ERROR;
- b.stack[b.stackPos++] = b.cur - b.data;
+ b.stack[b.stackPos++] = cast(int)(b.cur - b.data);
bson_append32(b, &zero);
return BSON_OK;
}
@@ -85,11 +85,11 @@ static int _bson_append_regex(bson* b, string name, string pattern, string opts)
{
int plen = 1;
if(pattern !is null)
- plen = pattern.length + 1;
+ plen = cast(int)pattern.length + 1;
int olen = 1;
if(opts !is null)
- olen = opts.length + 1;
+ olen = cast(int)opts.length + 1;
if(_bson_append_estart(b, bson_type.BSON_REGEX, name, plen + olen) == BSON_ERROR)
return BSON_ERROR;
@@ -343,7 +343,7 @@ void bson_oid_gen( bson_oid_t *oid ) {
auto currentTime = Clock.currTime();
- time_t t = currentTime.toUnixTime();
+ time_t t = cast(time_t)currentTime.toUnixTime();
if( oid_inc_func )
i = oid_inc_func();
@@ -535,7 +535,7 @@ bson_type bson_iterator_next( bson_iterator *i ) {
char *p = s;
p += strlen( p )+1;
p += strlen( p )+1;
- ds = p-s;
+ ds = cast(int)(p-s);
break;
}
@@ -775,7 +775,7 @@ void bson_append64( bson *b, void *data ) {
}
int bson_ensure_space( bson *b, int bytesNeeded ) {
- int pos = b.cur - b.data;
+ int pos = cast(int)(b.cur - b.data);
char *orig = b.data;
int new_size;
@@ -812,7 +812,7 @@ int bson_finish( bson *b ) {
if ( ! b.finished ) {
if ( bson_ensure_space( b, 1 ) == BSON_ERROR ) return BSON_ERROR;
bson_append_byte( b, 0 );
- i = b.cur - b.data;
+ i = cast(int)(b.cur - b.data);
bson_little_endian32( b.data, &i );
b.finished = 1;
}
@@ -829,7 +829,7 @@ void bson_destroy( bson *b ) {
}
static int bson_append_estart( bson *b, int type, char *name, int dataSize ) {
- int len = strlen( name ) + 1;
+ int len = cast(int)(strlen( name ) + 1);
if ( b.finished ) {
b.err |= BSON_ALREADY_FINISHED;
@@ -910,15 +910,15 @@ int bson_append_string_base( bson *b, char *name,
}
int bson_append_string( bson *b, char *name, char *value ) {
- return bson_append_string_base( b, name, value, strlen ( value ), bson_type.BSON_STRING );
+ return bson_append_string_base( b, name, value, cast(int)strlen ( value ), bson_type.BSON_STRING );
}
int bson_append_symbol( bson *b, char *name, char *value ) {
- return bson_append_string_base( b, name, value, strlen ( value ), bson_type.BSON_SYMBOL );
+ return bson_append_string_base( b, name, value, cast(int)strlen ( value ), bson_type.BSON_SYMBOL );
}
int bson_append_code( bson *b, char *name, char *value ) {
- return bson_append_string_base( b, name, value, strlen ( value ), bson_type.BSON_CODE );
+ return bson_append_string_base( b, name, value, cast(int)strlen ( value ), bson_type.BSON_CODE );
}
int bson_append_string_n( bson *b, char *name, char *value, int len ) {
@@ -948,7 +948,7 @@ int bson_append_code_w__scope_n( bson *b, char *name,
}
int bson_append_code_w__scope( bson *b, char *name, char *code, bson *_scope ) {
- return bson_append_code_w__scope_n( b, name, code, strlen ( code ), _scope );
+ return bson_append_code_w__scope_n( b, name, code, cast(int)strlen ( code ), _scope );
}
int bson_append_binary( bson *b, char *name, char type, char *str, int len ) {
@@ -984,8 +984,8 @@ int bson_append_new_oid( bson *b, char *name ) {
}
int bson_append_regex( bson *b, char *name, char *pattern, char *opts ) {
- int plen = strlen( pattern )+1;
- int olen = strlen( opts )+1;
+ int plen = cast(int)strlen( pattern )+1;
+ int olen = cast(int)strlen( opts )+1;
if ( bson_append_estart( b, bson_type.BSON_REGEX, name, plen + olen ) == BSON_ERROR )
return BSON_ERROR;
if ( bson_check_string( b, pattern, plen - 1 ) == BSON_ERROR )
@@ -1007,14 +1007,14 @@ int bson_append_element( bson *b, char *name_or_null, bson_iterator *elem ) {
int size;
bson_iterator_next( &next );
- size = next.cur - elem.cur;
+ size = cast(int)(next.cur - elem.cur);
if ( name_or_null == null ) {
if( bson_ensure_space( b, size ) == BSON_ERROR )
return BSON_ERROR;
bson_append( b, elem.cur, size );
} else {
- int data_size = size - 2 - strlen( bson_iterator_key( elem ) );
+ int data_size = cast(int)(size - 2 - strlen( bson_iterator_key( elem ) ));
bson_append_estart( b, elem.cur[0], name_or_null, data_size );
bson_append( b, bson_iterator_value( elem ), data_size );
}
@@ -1043,14 +1043,14 @@ int bson_append_time_t( bson *b, char *name, time_t secs ) {
int bson_append_start_object( bson *b, char *name ) {
if ( bson_append_estart( b, bson_type.BSON_OBJECT, name, 5 ) == BSON_ERROR ) return BSON_ERROR;
- b.stack[ b.stackPos++ ] = b.cur - b.data;
+ b.stack[ b.stackPos++ ] = cast(int)(b.cur - b.data);
bson_append32( b , &zero );
return BSON_OK;
}
int bson_append_start_array( bson *b, char *name ) {
if ( bson_append_estart( b, bson_type.BSON_ARRAY, name, 5 ) == BSON_ERROR ) return BSON_ERROR;
- b.stack[ b.stackPos++ ] = b.cur - b.data;
+ b.stack[ b.stackPos++ ] = cast(int)(b.cur - b.data);
bson_append32( b , &zero );
return BSON_OK;
}
@@ -1062,7 +1062,7 @@ int bson_append_finish_object( bson *b ) {
bson_append_byte( b , 0 );
start = b.data + b.stack[ --b.stackPos ];
- i = b.cur - start;
+ i = cast(int)(b.cur - start);
bson_little_endian32( start, &i );
return BSON_OK;
View
48 src/mongod/mongo.d
@@ -124,7 +124,7 @@ void mongo_replset_init( mongo *conn, char *name ) {
conn.replset.primary_connected = 0;
conn.replset.seeds = null;
conn.replset.hosts = null;
- conn.replset.name = cast( char * )bson_malloc( strlen( name ) + 1 );
+ conn.replset.name = cast( char * )bson_malloc( cast(int)strlen( name ) + 1 );
memcpy( conn.replset.name, name, strlen( name ) + 1 );
conn.primary = cast (mongo_host_port *)bson_malloc( mongo_host_port.sizeof );
@@ -328,7 +328,7 @@ static int mongo_cursor_bson_valid( mongo_cursor *cursor, bson *bson ) {
int mongo_insert_batch( mongo *conn, char *ns,
bson **bsons, int count ) {
- int size = 16 + 4 + strlen( ns ) + 1;
+ int size = 16 + 4 + cast(int)strlen( ns ) + 1;
int i;
mongo_message *mm;
char *data;
@@ -343,7 +343,7 @@ int mongo_insert_batch( mongo *conn, char *ns,
data = &mm.data;
data = mongo_data_append32( data, &ZERO );
- data = mongo_data_append( data, ns, strlen( ns ) + 1 );
+ data = mongo_data_append( data, ns, cast(int)strlen( ns ) + 1 );
for( i=0; i<count; i++ ) {
data = mongo_data_append( data, bsons[i].data, bson_size( bsons[i] ) );
@@ -364,13 +364,13 @@ int mongo_insert( mongo *conn , char *ns , bson *bson ) {
mm = mongo_message_create( 16 /* header */
+ 4 /* ZERO */
- + strlen( ns )
+ + cast(int)strlen( ns )
+ 1 + bson_size( bson )
, 0, 0, MONGO_OP_INSERT );
data = &mm.data;
data = mongo_data_append32( data, &ZERO );
- data = mongo_data_append( data, ns, strlen( ns ) + 1 );
+ data = mongo_data_append( data, ns, cast(int)strlen( ns ) + 1 );
data = mongo_data_append( data, bson.data, bson_size( bson ) );
return mongo_message_send( conn, mm );
@@ -391,15 +391,15 @@ int mongo_update( mongo *conn, char *ns, bson *cond,
mm = mongo_message_create( 16 /* header */
+ 4 /* ZERO */
- + strlen( ns ) + 1
+ + cast(int)strlen( ns ) + 1
+ 4 /* flags */
+ bson_size( cond )
+ bson_size( op )
, 0 , 0 , MONGO_OP_UPDATE );
data = &mm.data;
data = mongo_data_append32( data, &ZERO );
- data = mongo_data_append( data, ns, strlen( ns ) + 1 );
+ data = mongo_data_append( data, ns, cast(int)strlen( ns ) + 1 );
data = mongo_data_append32( data, &flags );
data = mongo_data_append( data, cond.data, bson_size( cond ) );
data = mongo_data_append( data, op.data, bson_size( op ) );
@@ -419,14 +419,14 @@ int mongo_remove( mongo *conn, char *ns, bson *cond ) {
mongo_message *mm = mongo_message_create( 16 /* header */
+ 4 /* ZERO */
- + strlen( ns ) + 1
+ + cast(int)strlen( ns ) + 1
+ 4 /* ZERO */
+ bson_size( cond )
, 0 , 0 , MONGO_OP_DELETE );
data = &mm.data;
data = mongo_data_append32( data, &ZERO );
- data = mongo_data_append( data, ns, strlen( ns ) + 1 );
+ data = mongo_data_append( data, ns, cast(int)strlen( ns ) + 1 );
data = mongo_data_append32( data, &ZERO );
data = mongo_data_append( data, cond.data, bson_size( cond ) );
@@ -453,15 +453,15 @@ static int mongo_cursor_op_query( mongo_cursor *cursor ) {
mm = mongo_message_create( 16 + /* header */
4 + /* options */
- strlen( cursor.ns ) + 1 + /* ns */
+ cast(int)strlen( cursor.ns ) + 1 + /* ns */
4 + 4 + /* skip,return */
bson_size( cursor.query ) +
bson_size( cursor.fields ) ,
0 , 0 , MONGO_OP_QUERY );
data = &mm.data;
data = mongo_data_append32( data , &cursor.options );
- data = mongo_data_append( data , cursor.ns , strlen( cursor.ns ) + 1 );
+ data = mongo_data_append( data , cursor.ns , cast(int)strlen( cursor.ns ) + 1 );
data = mongo_data_append32( data , &cursor.skip );
data = mongo_data_append32( data , &cursor.limit );
data = mongo_data_append( data , cursor.query.data , bson_size( cursor.query ) );
@@ -499,7 +499,7 @@ static int mongo_cursor_get_more( mongo_cursor *cursor ) {
return MONGO_ERROR;
} else {
char *data;
- int sl = strlen( cursor.ns )+1;
+ int sl = cast(int)strlen( cursor.ns )+1;
int limit = 0;
mongo_message *mm;
@@ -575,8 +575,8 @@ int mongo_find_one( mongo *conn, char *ns, bson *query,
void mongo_cursor_init( mongo_cursor *cursor, mongo *conn, char *ns ) {
cursor.conn = conn;
- cursor.ns = cast( char * )bson_malloc( strlen( ns ) + 1 );
- strncpy( cast( char * )cursor.ns, ns, strlen( ns ) + 1 );
+ cursor.ns = cast( char * )bson_malloc( cast(int)strlen( ns ) + 1 );
+ strncpy( cast( char * )cursor.ns, ns, cast(int)strlen( ns ) + 1 );
cursor.current.data = null;
cursor.reply = null;
cursor.flags = 0;
@@ -780,7 +780,7 @@ int mongo_run_command( mongo *conn, char *db, bson *command,
bson *_out ) {
bson fields;
- int sl = strlen( db );
+ int sl = cast(int)strlen( db );
char *ns = cast(char*)bson_malloc( sl + 5 + 1 ); /* ".$cmd" + nul */
int res;
@@ -944,9 +944,9 @@ static void mongo_pass_digest( char *user, char *pass, char hex_digest[33] ) {
mongo_md5_byte_t digest[16];
mongo_md5_init( &st );
- mongo_md5_append( &st, cast( mongo_md5_byte_t * )user, strlen( user ) );
+ mongo_md5_append( &st, cast( mongo_md5_byte_t * )user, cast(int)strlen( user ) );
mongo_md5_append( &st, cast( mongo_md5_byte_t * )":mongo:", 7 );
- mongo_md5_append( &st, cast( mongo_md5_byte_t * )pass, strlen( pass ) );
+ mongo_md5_append( &st, cast( mongo_md5_byte_t * )pass, cast(int)strlen( pass ) );
mongo_md5_finish( &st, digest );
digest2hex( digest, hex_digest );
}
@@ -955,7 +955,7 @@ int mongo_cmd_add_user( mongo *conn, char *db, char *user, char *pass ) {
bson user_obj;
bson pass_obj;
char hex_digest[33];
- char *ns = cast(char*)bson_malloc( strlen( db ) + strlen( cast(char*) ".system.users" ) + 1 );
+ char *ns = cast(char*)bson_malloc( cast(int)strlen( db ) + cast(int)strlen( cast(char*) ".system.users" ) + 1 );
int res;
strcpy( ns, db );
@@ -1004,8 +1004,8 @@ bson_bool_t mongo_cmd_authenticate( mongo *conn, char *db, char *user, char *
mongo_pass_digest( user, pass, hex_digest );
mongo_md5_init( &st );
- mongo_md5_append( &st, cast( mongo_md5_byte_t * )nonce, strlen( nonce ) );
- mongo_md5_append( &st, cast( mongo_md5_byte_t * )user, strlen( user ) );
+ mongo_md5_append( &st, cast( mongo_md5_byte_t * )nonce, cast(int)strlen( nonce ) );
+ mongo_md5_append( &st, cast( mongo_md5_byte_t * )user, cast(int)strlen( user ) );
mongo_md5_append( &st, cast( mongo_md5_byte_t * )hex_digest, 32 );
mongo_md5_finish( &st, digest );
digest2hex( digest, hex_digest );
@@ -1076,7 +1076,7 @@ int mongo_read_response(mongo* conn, mongo_reply** reply, bool retry = false)
bson_little_endian32(&_out.fields.start, &fields.start);
bson_little_endian32(&_out.fields.num, &fields.num);
- res = mongo_read_socket(conn, &_out.objs, len - head.sizeof - fields.sizeof);
+ res = mongo_read_socket(conn, &_out.objs, len - cast(int)head.sizeof - cast(int)fields.sizeof);
if(res != MONGO_OK)
{
throw new Exception("io _in mongo_read_socket, phase 3");
@@ -1136,7 +1136,7 @@ int mongo_message_send(mongo* conn, mongo_message* mm, bool retry = false)
throw new Exception("io _in mongo_write_socket, phase 1");
}
- res = mongo_write_socket(conn, &mm.data, mm.head.len - head.sizeof);
+ res = mongo_write_socket(conn, &mm.data, mm.head.len - cast(int)head.sizeof);
if(res != MONGO_OK)
{
throw new Exception("io _in mongo_write_socket, phase 2");
@@ -1176,14 +1176,14 @@ int mongo_message_send(mongo* conn, mongo_message* mm, bool retry = false)
int send(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0 .. len];
- int ll = sock.send(bb);
+ int ll = cast(int)sock.send(bb);
return ll;
}
int recv(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0 .. len];
- int ll = sock.receive(bb);
+ int ll = cast(int)sock.receive(bb);
return ll;
}
View
4 src/mongod/net.d
@@ -12,14 +12,14 @@ import mongod.bson_h;
int send(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0 .. len];
- int ll = sock.send(bb);
+ int ll = cast(int)sock.send(bb);
return ll;
}
int recv(Socket sock, void* buf, size_t len, int flags)
{
void[] bb = buf[0 .. len];
- int ll = sock.receive(bb);
+ int ll = cast(int)sock.receive(bb);
return ll;
}

0 comments on commit eadad2f

Please sign in to comment.
Something went wrong with that request. Please try again.