Browse Source

Merge commit '803c405' into bfgminer

Luke Dashjr 11 years ago
parent
commit
717f76f8fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util.h

+ 2 - 2
util.h

@@ -420,12 +420,12 @@ typedef struct bytes_t {
 	size_t allocsz;
 	size_t allocsz;
 } bytes_t;
 } bytes_t;
 
 
-#define BYTES_INIT ((bytes_t){.buf=NULL,})
+#define BYTES_INIT {.buf=NULL,}
 
 
 static inline
 static inline
 void bytes_init(bytes_t *b)
 void bytes_init(bytes_t *b)
 {
 {
-	*b = BYTES_INIT;
+	*b = (bytes_t)BYTES_INIT;
 }
 }
 
 
 // This can't be inline without ugly const/non-const issues
 // This can't be inline without ugly const/non-const issues