Mercurial > vim
view runtime/compiler/sml.vim @ 30940:5bc99d85f773 v9.0.0804
patch 9.0.0804: crash when trying to divide a number by -1
Commit: https://github.com/vim/vim/commit/cdef1cefa2a440911c727558562f83ed9b00e16b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 20 14:17:18 2022 +0100
patch 9.0.0804: crash when trying to divide a number by -1
Problem: Crash when trying to divice the largest negative number by -1.
Solution: Handle this case specifically.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Oct 2022 15:30:03 +0200 |
parents | c968191a8557 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: SML/NJ Compiler " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2022 Feb 09 if exists("current_compiler") finish endif let current_compiler = "sml" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim CompilerSet makeprg=sml CompilerSet errorformat=%f:%l.%c-%e.%k\ %trror:\ %m, \%f:%l.%c\ %trror:\ %m, \%trror:\ %m, \%f:%l.%c-%e.%k\ %tarning:\ %m, \%f:%l.%c\ %tarning:\ %m, \%tarning:\ %m, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save