Skip to content

Commit

Permalink
Don't declare dir* variables with ptrdiff_t (use CCTK_REAL instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Aug 12, 2012
1 parent 4707e0c commit 9c55ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/CalculationFunction.m
Expand Up @@ -269,7 +269,7 @@ pathalogical enough (e.g. {s1 -> s2, s2 -> s1} would not be
(* Return a CodeGen block which assigns dest by evaluating expr *)
assignVariableFromExpression[dest_, expr_, declare_, vectorise_, noSimplify:Boolean : False] :=
Module[{type, cleanExpr, code},
type = If[StringMatchQ[ToString[dest], "dir*"], "ptrdiff_t", DataType[]];
type = DataType[];
cleanExpr = ReplacePowers[expr, vectorise, noSimplify];

If[SOURCELANGUAGE == "C",
Expand Down

0 comments on commit 9c55ecd

Please sign in to comment.