Skip to content
Snippets Groups Projects
Forked from EECS 281 / eecs281_project2_wn16
3 commits behind the upstream repository.
  • Waleed Khan's avatar
    e55c3bd4
    Fix P2.cpp compiler error on some systems · e55c3bd4
    Waleed Khan authored
    It doesn't manifest on my machine because it seems like the result of
    `foo` here should be forced to be an `int`:
    
        int foo = getLongValue() % getIntValue();
    
    But on some setups, it seems that this produces a `long` value instead,
    which is then a warning when being put into an `int` value.
    e55c3bd4
    History
    Fix P2.cpp compiler error on some systems
    Waleed Khan authored
    It doesn't manifest on my machine because it seems like the result of
    `foo` here should be forced to be an `int`:
    
        int foo = getLongValue() % getIntValue();
    
    But on some setups, it seems that this produces a `long` value instead,
    which is then a warning when being put into an `int` value.
P2.cpp 5.47 KiB