Changeset 37e5640


Ignore:
Timestamp:
Apr 25, 2020, 10:44:02 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0a2e1c05
Parents:
c4e3c28b
Message:

more work on manipulators for int128 numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    rc4e3c28b r37e5640  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr 24 13:51:36 2020
    13 // Update Count     : 956
     12// Last Modified On : Sat Apr 25 09:54:49 2020
     13// Update Count     : 962
    1414//
    1515
     
    593593                                        (ostype &)(os | fmt | "" | fmt2); \
    594594                                } else if ( f.base == 'o' ) { \
    595                                         if ( fmt.flags.pc && fmt.pc > 22 ) fmt.pc -= 22; else fmt.flags.pc = false; \
     595                                        if ( fmt.flags.pc && fmt.pc > 22 ) fmt.pc -= 22; else { fmt.flags.pc = false; fmt.pc = 0; } \
    596596                                        if ( fmt.flags.left ) { \
    597597                                                fmt.flags.left = false; \
     
    606606                                                fmt2.flags.left = true; \
    607607                                                int msigd = ceiling( high1( fmt.val ), 3 ) + 1; \
    608                                                 fmt2.wd = f.wd - (fmt.pc > msigd ? fmt.pc : msigd); \
     608                                                fmt2.wd = f.wd - (fmt.pc > msigd ? fmt.pc : msigd) - 1; \
     609                                                /* printf( "\nL2 %llo %d %d '%c' %x\n", fmt2.val, fmt2.wd, fmt2.pc, fmt2.base, fmt2.all ); */   \
    609610                                                if ( fmt2.wd < 0 ) fmt2.wd = 21; \
    610611                                                fmt2.flags.pc = true; fmt2.pc = 21; \
Note: See TracChangeset for help on using the changeset viewer.