From eeea4de4442ec5cbe1a0876939a35e8bcc1a916f Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Thu, 11 Feb 2016 14:02:15 +0100 Subject: [PATCH] Fix damos/kgs/GetPolynom Change-Id: Ib076c17e6f7f5c9b4e372d38b77319aeefac7e12 --- vimfiles.damos/ftplugin/kgs.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vimfiles.damos/ftplugin/kgs.vim b/vimfiles.damos/ftplugin/kgs.vim index c48e7eb..3804535 100644 --- a/vimfiles.damos/ftplugin/kgs.vim +++ b/vimfiles.damos/ftplugin/kgs.vim @@ -231,6 +231,8 @@ function s:GetPolynom(umrechnung) let name = element['Name'] if name == 'Mas' let umr['Mas'] = element['Elements'][0] + elseif name == 'AFm' + " ignore else let nr = substitute(name, 'P\(\d\)', '\1', '') if nr != name @@ -301,15 +303,15 @@ function s:GetOspTestValues() let hex = ToHex(int, 16) let phys = s:GetOspPolyPhysValue(int, p) echo s:formatValues(int, hex, phys, Mas) - let int = '2147483647L' + let int = '2147483647' let hex = ToHex(int, 32) let phys = s:GetOspPolyPhysValue(int, p) echo s:formatValues(int, hex, phys, Mas) - let int = '-2147483648L' + let int = '-2147483648' let hex = ToHex(int, 32) let phys = s:GetOspPolyPhysValue(int, p) echo s:formatValues(int, hex, phys, Mas) - let int = '4294967295L' + let int = '4294967295' let hex = '0xffffffff' let phys = s:GetOspPolyPhysValue(int, p) echo s:formatValues(int, hex, phys, Mas)