History

Fix some C++ incompatibilities

evpobr committed 6 years ago

Commit c28af3d1 parent 5f609974 files · +7 −7Browse files

Showing the changes to src/src_linear.c (1 of 4 files). Show all

Unified · Split

src/src_linear.c+2−2
@@ -173,7 +173,7 @@ linear_set_converter (SRC_STATE *state, int src_enum) · 172 unmodified lines
173 priv = (LINEAR_DATA *) calloc (1, sizeof (LINEAR_DATA)) ;173 priv = (LINEAR_DATA *) calloc (1, sizeof (LINEAR_DATA)) ;
174 if (priv)174 if (priv)
175 {175 {
176 priv->last_value = calloc (state->channels, sizeof (float)) ;176 priv->last_value = (float *) calloc (state->channels, sizeof (float)) ;
177 if (!priv->last_value)177 if (!priv->last_value)
178 {178 {
179 free (priv) ;179 free (priv) ;
@@ -229,7 +229,7 @@ linear_copy (SRC_STATE *from, SRC_STATE *to) · 49 unmodified lines
229 return SRC_ERR_MALLOC_FAILED ;229 return SRC_ERR_MALLOC_FAILED ;
230 230
231 memcpy (to_priv, from_priv, sizeof (LINEAR_DATA)) ;231 memcpy (to_priv, from_priv, sizeof (LINEAR_DATA)) ;
232 to_priv->last_value = malloc (sizeof (float) * from->channels) ;232 to_priv->last_value = (float *) malloc (sizeof (float) * from->channels) ;
233 if (!to_priv->last_value)233 if (!to_priv->last_value)
234 {234 {
235 free (to_priv) ;235 free (to_priv) ;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t