Mercurial > octave-libgccjit
comparison liboctave/util/oct-inttypes.h @ 18634:5b6901b06106 gui-release
maint: Periodic merge of stable to gui-release.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 06 Apr 2014 13:37:23 -0700 |
parents | 545a77c3206e 37c300acfcfd |
children |
comparison
equal
deleted
inserted
replaced
18631:c7df983b003a | 18634:5b6901b06106 |
---|---|
834 typedef T val_type; | 834 typedef T val_type; |
835 | 835 |
836 octave_int (void) : ival () { } | 836 octave_int (void) : ival () { } |
837 | 837 |
838 octave_int (T i) : ival (i) { } | 838 octave_int (T i) : ival (i) { } |
839 | |
840 // Always treat characters as unsigned. | |
841 octave_int (char c) | |
842 : ival (octave_int_base<T>::truncate_int (static_cast<unsigned char> (c))) | |
843 { } | |
839 | 844 |
840 octave_int (double d) : ival (octave_int_base<T>::convert_real (d)) { } | 845 octave_int (double d) : ival (octave_int_base<T>::convert_real (d)) { } |
841 | 846 |
842 octave_int (float d) : ival (octave_int_base<T>::convert_real (d)) { } | 847 octave_int (float d) : ival (octave_int_base<T>::convert_real (d)) { } |
843 | 848 |