aboutsummaryrefslogtreecommitdiff
path: root/src/interp/pf2sex.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/pf2sex.boot')
-rw-r--r--src/interp/pf2sex.boot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interp/pf2sex.boot b/src/interp/pf2sex.boot
index 232a004a..ecd19406 100644
--- a/src/interp/pf2sex.boot
+++ b/src/interp/pf2sex.boot
@@ -1,6 +1,6 @@
-- Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-- All rights reserved.
--- Copyright (C) 2007-2011, Gabriel Dos Reis.
+-- Copyright (C) 2007-2012, Gabriel Dos Reis.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -383,12 +383,12 @@ pfSequence2Sex0 seqList ==
["SEQ", :reverse! seqTranList]
float2Sex num ==
- eIndex := SEARCH('"e", num)
+ eIndex := findChar(char "e", num)
mantPart :=
eIndex => subSequence(num, 0, eIndex)
num
expPart := (eIndex => READ_-FROM_-STRING subSequence(num, eIndex+1); 0)
- dotIndex := SEARCH('".", mantPart)
+ dotIndex := findChar(char ".", mantPart)
intPart :=
dotIndex => READ_-FROM_-STRING subSequence(mantPart, 0, dotIndex)
READ_-FROM_-STRING mantPart