summaryrefslogtreecommitdiff
path: root/library/declaremods.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:42 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:42 +0200
commit870075f34dd9fa5792bfbf413afd3b96f17e76a0 (patch)
tree0c647056de1832cf1dba5ba58758b9121418e4be /library/declaremods.ml
parenta0cfa4f118023d35b767a999d5a2ac4b082857b4 (diff)
Imported Upstream version 8.2~beta4+dfsgupstream/8.2.beta4+dfsg
Diffstat (limited to 'library/declaremods.ml')
-rw-r--r--library/declaremods.ml10
1 files changed, 6 insertions, 4 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml
index 123417a6..b630b5dc 100644
--- a/library/declaremods.ml
+++ b/library/declaremods.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(*i $Id: declaremods.ml 11142 2008-06-18 15:37:31Z soubiran $ i*)
+(*i $Id: declaremods.ml 11246 2008-07-22 15:10:05Z soubiran $ i*)
open Pp
open Util
open Names
@@ -433,10 +433,12 @@ and subst_module_alias ((sp,kn),subst,(entry,substobjs,_)) =
mod_entry_expr =
Some (MSEident mp')},sub),
substobjs, match mbids with
- | [] ->
+ | [] -> let subst = update_subst subst' (map_mp mp' mp) in
Some (subst_objects (dir,(mp',empty_dirpath))
- (join subst' (join (map_msid msid mp')
- (map_mp mp mp'))) objs)
+ (join (join subst' subst) (join (map_msid msid mp')
+ (map_mp mp mp')))
+ objs)
+
| _ -> None)
| _ -> anomaly "Modops: Not an alias"