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
173173 priv = (LINEAR_DATA *) calloc (1, sizeof (LINEAR_DATA)) ;
174174 if (priv)
175175 {
176− priv->last_value = calloc (state->channels, sizeof (float)) ;
176+ priv->last_value = (float *) calloc (state->channels, sizeof (float)) ;
177177 if (!priv->last_value)
178178 {
179179 free (priv) ;
@@ -229,7 +229,7 @@ linear_copy (SRC_STATE *from, SRC_STATE *to) · 49 unmodified lines
229229 return SRC_ERR_MALLOC_FAILED ;
230230
231231 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) ;
233233 if (!to_priv->last_value)
234234 {
235235 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