error(2)
-
[C/C++] shift operator 사용 시 주의
서론 회사에서 pvs 정적분석 툴을 사용하는데 엔진 코드에 shift 연산자에 관한 검출 결과가 많았따. https://www.viva64.com/en/w/v610/ 에러는 shift 연산자를 사용할 때 left, right 피연산자가 음수일 때, right 피연산자가 32를 넘어갈 때 등을 고려하고 있다. 예제 const signed long long test[4] = { 1024
2019.07.19 -
[GIT] ! [rejected] master -> master (non-fast-forward)
error To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. ‘git pull’) before pushing again. See the ‘Note about fast-forwards’ section of ‘git push –help’ for details. 대충 해당 에러는 원격 저장소 정보가 손실 될 수 있으니 확인해보라고 한다. push 하려고 하는데 remote에서 누군가 먼저 push를 했다던가.. 여러 원인이 있을 수 있다. 해결 첫 번째 경우는 브랜치 문제일 가능성이 있다. 다른 브랜치를 보고 있을 수 있으므로 현재 local 브랜치가 push 하려는 re..
2016.01.25