comparison libinterp/corefcn/oct-stream.cc @ 19944:3fa35defe495

Adjust spacing of static_cast<> calls to follow Octave coding conventions. * __init_qt__.cc, file-editor.cc, main-window.cc, bsxfun.cc, data.cc, filter.cc, gammainc.cc, ls-hdf5.cc, mex.cc, oct-stream.cc, lo-mappers.cc, lo-specfun.cc, data-conv.cc, lo-regexp.cc, oct-inttypes.h: Adjust spacing of static_cast<> calls to follow Octave coding conventions.
author Rik <rik@octave.org>
date Tue, 17 Feb 2015 13:34:32 -0800
parents 17a7e9f26e50
children 1c9ed5b4c73d
comparison
equal deleted inserted replaced
19943:9155bab86647 19944:3fa35defe495
3588 convert_ints (const T *data, void *conv_data, octave_idx_type n_elts, 3588 convert_ints (const T *data, void *conv_data, octave_idx_type n_elts,
3589 bool swap) 3589 bool swap)
3590 { 3590 {
3591 typedef typename V::val_type val_type; 3591 typedef typename V::val_type val_type;
3592 3592
3593 val_type *vt_data = static_cast <val_type *> (conv_data); 3593 val_type *vt_data = static_cast<val_type *> (conv_data);
3594 3594
3595 for (octave_idx_type i = 0; i < n_elts; i++) 3595 for (octave_idx_type i = 0; i < n_elts; i++)
3596 { 3596 {
3597 // Yes, we want saturation semantics when converting to an integer 3597 // Yes, we want saturation semantics when converting to an integer
3598 // type. 3598 // type.
3683 convert_ints<T, octave_uint64> (data, conv_data, n_elts, swap); 3683 convert_ints<T, octave_uint64> (data, conv_data, n_elts, swap);
3684 break; 3684 break;
3685 3685
3686 case oct_data_conv::dt_single: 3686 case oct_data_conv::dt_single:
3687 { 3687 {
3688 float *vt_data = static_cast <float *> (conv_data); 3688 float *vt_data = static_cast<float *> (conv_data);
3689 3689
3690 for (octave_idx_type i = 0; i < n_elts; i++) 3690 for (octave_idx_type i = 0; i < n_elts; i++)
3691 { 3691 {
3692 vt_data[i] = data[i]; 3692 vt_data[i] = data[i];
3693 3693
3697 } 3697 }
3698 break; 3698 break;
3699 3699
3700 case oct_data_conv::dt_double: 3700 case oct_data_conv::dt_double:
3701 { 3701 {
3702 double *vt_data = static_cast <double *> (conv_data); 3702 double *vt_data = static_cast<double *> (conv_data);
3703 3703
3704 for (octave_idx_type i = 0; i < n_elts; i++) 3704 for (octave_idx_type i = 0; i < n_elts; i++)
3705 { 3705 {
3706 vt_data[i] = data[i]; 3706 vt_data[i] = data[i];
3707 3707