comparison liboctave/util/oct-locbuf.cc @ 21751:b571fc85953f

maint: Use two spaces after period to indicate sentence break.
author Rik <rik@octave.org>
date Thu, 19 May 2016 18:48:52 -0700
parents aba2e6293dd8
children bac0d6f07a3e
comparison
equal deleted inserted replaced
21750:6720e5a220ba 21751:b571fc85953f
45 size_t octave_chunk_buffer::left = 0; 45 size_t octave_chunk_buffer::left = 0;
46 size_t octave_chunk_buffer::active = 0; 46 size_t octave_chunk_buffer::active = 0;
47 47
48 octave_chunk_buffer::octave_chunk_buffer (size_t size) : cnk (0), dat (0) 48 octave_chunk_buffer::octave_chunk_buffer (size_t size) : cnk (0), dat (0)
49 { 49 {
50 // Alignment mask. The size of double or long int, whichever is 50 // Alignment mask. The size of double or long int, whichever is
51 // greater. All data will be aligned to this size. If it's not 51 // greater. All data will be aligned to this size. If it's not
52 // enough for a type, that type should not be declared as POD. 52 // enough for a type, that type should not be declared as POD.
53 53
54 static const size_t align_mask = (sizeof (long) < sizeof (double) 54 static const size_t align_mask = (sizeof (long) < sizeof (double)
55 ? sizeof (double) 55 ? sizeof (double)
58 active++; 58 active++;
59 59
60 if (! size) 60 if (! size)
61 return; 61 return;
62 62
63 // Align size. Note that size_t is unsigned, so size-1 must correctly 63 // Align size. Note that size_t is unsigned, so size-1 must correctly
64 // wrap around. 64 // wrap around.
65 65
66 size = ((size - 1) | align_mask) + 1; 66 size = ((size - 1) | align_mask) + 1;
67 67
68 if (size > left) 68 if (size > left)