bc/bc-1.06-strict-aliasing.diff

14 lines
308 B
Diff
Raw Normal View History

--- bc-1.06/dc/numeric.c
+++ bc-1.06/dc/numeric.c
@@ -254,8 +254,8 @@
{
dc_data result;
- bc_init_num((bc_num *)&result.v.number);
- bc_int2num((bc_num *)&result.v.number, value);
+ bc_init_num(&result.v.number);
+ bc_int2num(&result.v.number, value);
result.dc_type = DC_NUMBER;
return result;
}