[gephex-devel] gephex--main--0.4--patch-1865

gephex at sonnenland.kexbox.org gephex at sonnenland.kexbox.org
Tue Mar 22 16:44:23 CET 2005


Archive: gephex at gephex.org--2004
New revision: gephex--main--0.4--patch-1865

--
Revision: gephex--main--0.4--patch-1865
Archive: gephex at gephex.org--2004
Creator: The Gephex Source Archive <gephex at gephex.org>
Date: Tue Mar 22 16:41:01 CET 2005
Standard-date: 2005-03-22 15:41:01 GMT
Modified-files: types/src/miditype/miditype.h
New-patches: gephex at gephex.org--2004/gephex--main--0.4--patch-1865
    martin at gephex.org--2004/gephex--martin--0.4--patch-64
Summary: [MERGE-REQUEST] bugfix for broken midi assign #112)
Keywords: 

Patches applied:

 * martin at gephex.org--2004/gephex--martin--0.4--patch-64
   bugfix for midi assign (#112)

* added files

    {arch}/gephex/gephex--main/gephex--main--0.4/gephex at gephex.org--2004/patch-log/patch-1865
    {arch}/gephex/gephex--martin/gephex--martin--0.4/martin at gephex.org--2004/patch-log/patch-64

* modified files

--- orig/types/src/miditype/miditype.h
+++ mod/types/src/miditype/miditype.h
@@ -73,11 +73,7 @@
 static __inline void midi_set_buffer(MidiType* dst, unsigned char* buf,
 				     int len)
 {
-  if (len == 0)
-    return;
-
-  if (dst->capacity < len)
-    midi_resize(dst, len);
+  midi_resize(dst, len);
 
   assert(dst->capacity >= len);
   assert(dst->data != 0);
@@ -88,11 +84,7 @@
 
 static __inline void midi_assign(MidiType* dst, const MidiType* src)
 {
-  if (src->len == 0)
-    return;
-
-  if (dst->capacity < src->len)
-    midi_resize(dst, src->len);
+  midi_resize(dst, src->len);
   
   assert(dst->capacity >= src->len);
   assert(dst->data != 0);



More information about the gephex-devel mailing list