Information | |
---|---|
has gloss | eng: An off-by-one error (OBOE) is a logical error involving the discrete equivalent of a boundary condition. It often occurs in computer programming when an iterative loop iterates one time too many or too few. Usually this problem arises when a programmer fails to take into account that a sequence starts at zero rather than one (as with array indices in many languages), or makes mistakes such as using "is less than or equal to" where "is less than" should have been used in a comparison. This can also occur in a mathematical context. |
lexicalization | eng: Off by one error |
lexicalization | eng: off-by-one error |
lexicalization | eng: Off-by-one-error |
instance of | e/Software bug |
Meaning | |
---|---|
German | |
has gloss | deu: Ein Off-By-One-Error (deutsch etwa Um-Eins-daneben-Fehler) oder ±1-Problem bezeichnet eine bestimmte Art von Programmierfehlern, die bei der Entwicklung von Software unterlaufen können und meist ein spezieller Fall des Zaunpfahlproblems, eines Logikproblems der Indizierung, sind. Bei einem Off-By-One-Fehler ist entweder die Größenangabe eines Speicherblocks um 1 falsch oder es kann bei maximaler Puffergröße um einen Schritt zu viel in den Speicher geschrieben werden, wobei der Speicher eines anderen Puffers bzw. einer Variable überschrieben wird. |
lexicalization | deu: Off-by-one error |
lexicalization | deu: Off-by-one-Error |
Japanese | |
has gloss | jpn: Off-by-oneエラー(off-by-one error (OBOE))とは、境界条件の判定に関するエラーの一種である。コンピュータプログラミングにおいて、ループが正しい回数より一回多く、または一回少なく実行された場合などに発生する。 この問題の代表的な原因として、プログラマーが数字のカウントを0からではなく1から開始してしまう(多くのプログラミング言語では配列の添え字は0から始まる)、数値の比較において「~未満」とすべきところを「~以下」としてしまう、等が挙げられる。また、数学的な処理を行っている場合にも発生しうる。 |
lexicalization | jpn: off-by-oneエラー |
Polish | |
has gloss | pol: Off by one to błąd programistyczny polegający na pomyłce o jeden, np. zaczynanie od 1 kiedy powinno się od 0 (lub odwrotnie) bądź mylenie "mniejsze" z "mniejsze-równe" w warunkach pętli. |
lexicalization | pol: Off by one |
Media | |
---|---|
media:img | Fencepost error.svg |
Lexvo © 2008-2024 Gerard de Melo. Contact Legal Information / Imprint